after deploy bug
This commit is contained in:
parent
2d9bb3f05b
commit
9e26d44a3c
Binary file not shown.
@ -19,6 +19,8 @@ ALLOWED_HOSTS = ['*']
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
'https://*.flatlogic.app',
|
||||
'https://*.flatlogic.run',
|
||||
'https://*.flatlogic.com',
|
||||
'http://localhost:8000',
|
||||
'http://127.0.0.1:8000',
|
||||
]
|
||||
@ -150,6 +152,7 @@ if (BASE_DIR / 'node_modules').exists():
|
||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
|
||||
# Security settings for iframe/proxy support
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
SESSION_COOKIE_SECURE = True
|
||||
CSRF_COOKIE_SECURE = True
|
||||
SESSION_COOKIE_SAMESITE = "None"
|
||||
@ -168,4 +171,4 @@ CONTACT_EMAIL_TO = os.environ.get('CONTACT_EMAIL_TO', '').split(',')
|
||||
|
||||
# Media files
|
||||
MEDIA_URL = '/media/'
|
||||
MEDIA_ROOT = BASE_DIR / 'media'
|
||||
MEDIA_ROOT = BASE_DIR / 'media'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user