diff --git a/config/__pycache__/settings.cpython-311.pyc b/config/__pycache__/settings.cpython-311.pyc index 572327e..ba00619 100644 Binary files a/config/__pycache__/settings.cpython-311.pyc and b/config/__pycache__/settings.cpython-311.pyc differ diff --git a/config/settings.py b/config/settings.py index 3238358..22f03ee 100644 --- a/config/settings.py +++ b/config/settings.py @@ -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' \ No newline at end of file +MEDIA_ROOT = BASE_DIR / 'media'