after deploy bug

This commit is contained in:
Flatlogic Bot 2026-02-09 17:26:38 +00:00
parent 2d9bb3f05b
commit 9e26d44a3c
2 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,8 @@ ALLOWED_HOSTS = ['*']
CSRF_TRUSTED_ORIGINS = [ CSRF_TRUSTED_ORIGINS = [
'https://*.flatlogic.app', 'https://*.flatlogic.app',
'https://*.flatlogic.run',
'https://*.flatlogic.com',
'http://localhost:8000', 'http://localhost:8000',
'http://127.0.0.1:8000', 'http://127.0.0.1:8000',
] ]
@ -150,6 +152,7 @@ if (BASE_DIR / 'node_modules').exists():
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
# Security settings for iframe/proxy support # Security settings for iframe/proxy support
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
SESSION_COOKIE_SECURE = True SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SAMESITE = "None" SESSION_COOKIE_SAMESITE = "None"
@ -168,4 +171,4 @@ CONTACT_EMAIL_TO = os.environ.get('CONTACT_EMAIL_TO', '').split(',')
# Media files # Media files
MEDIA_URL = '/media/' MEDIA_URL = '/media/'
MEDIA_ROOT = BASE_DIR / 'media' MEDIA_ROOT = BASE_DIR / 'media'