14 lines
366 B
Plaintext
14 lines
366 B
Plaintext
CSRF_TRUSTED_ORIGINS = [
|
|
"https://grassrootscrm.flatlogic.app",
|
|
]
|
|
CSRF_TRUSTED_ORIGINS += [
|
|
origin for origin in [
|
|
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
|
|
for host in CSRF_TRUSTED_ORIGINS
|
|
]
|