This commit is contained in:
Flatlogic Bot 2026-03-11 09:20:58 +00:00
parent 5f3f4e93ff
commit 05c21af221
2 changed files with 5 additions and 3 deletions

View File

@ -23,19 +23,21 @@ DEBUG = os.getenv("DJANGO_DEBUG", "true").lower() == "true"
ALLOWED_HOSTS = [
"127.0.0.1",
"localhost",
"raktapulse-platform.flatlogic.app",
".flatlogic.app",
".dev.flatlogic.app",
os.getenv("HOST_FQDN", ""),
]
CSRF_TRUSTED_ORIGINS = [
origin for origin in [
"raktapulse-platform.flatlogic.app",
"https://*.flatlogic.app",
"https://*.dev.flatlogic.app",
os.getenv("HOST_FQDN", ""),
os.getenv("CSRF_TRUSTED_ORIGIN", "")
] if origin
]
CSRF_TRUSTED_ORIGINS = [
f"https://{host}" if not host.startswith(("http://", "https://")) else host
f"https://{host}" if not host.startswith(("http://", "https://")) and "*" not in host else host
for host in CSRF_TRUSTED_ORIGINS
]