diff --git a/config/__pycache__/settings.cpython-311.pyc b/config/__pycache__/settings.cpython-311.pyc index 7f1a2ce..aed33fc 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 5a4bcbe..2c4a3e7 100644 --- a/config/settings.py +++ b/config/settings.py @@ -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 ]