mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-08-14 04:40:36 +03:00
Setup cookie age
This commit is contained in:
parent
c682289b56
commit
31a8274e5f
|
@ -95,6 +95,8 @@ REST_FRAMEWORK = {
|
|||
CORS_ALLOW_CREDENTIALS = True
|
||||
CORS_ALLOWED_ORIGINS = os.environ.get('CORS_ALLOWED_ORIGINS', 'http://localhost:3000').split(';')
|
||||
CSRF_TRUSTED_ORIGINS = os.environ.get('CSRF_TRUSTED_ORIGINS', 'http://localhost:3000').split(';')
|
||||
CSRF_COOKIE_AGE = 365 * 24 * 60 * 60
|
||||
SESSION_COOKIE_AGE = 365 * 24 * 60 * 60 * 2
|
||||
|
||||
_domain = os.environ.get('CSRF_COOKIE_DOMAIN', '')
|
||||
if _domain != '':
|
||||
|
|
Loading…
Reference in New Issue
Block a user