We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35ad8ab commit 3dcaecbCopy full SHA for 3dcaecb
example.env
@@ -18,3 +18,6 @@ DB_PORT=5432
18
WEBSITE_URL = http://localhost:8000
19
PASS_RESET_URL_SUFFIX = reset-password/
20
ACCOUNT_CONFIRMATION_URL_SUFFIX = confirm-email/
21
+
22
+# trusted origins
23
+CSRF_TRUSTED_ORIGINS=http://localhost:8000,https://prod-api.unitystation.org,https://dev-api.unitystation.org
src/central_command/settings.py
@@ -38,6 +38,9 @@
38
39
ALLOWED_HOSTS = ["*"] if DEBUG else ["localhost", "127.0.0.1"]
40
41
+_csrf_origins = os.environ.get("CSRF_TRUSTED_ORIGINS", "")
42
+CSRF_TRUSTED_ORIGINS = [origin.strip() for origin in _csrf_origins.split(",") if origin.strip()]
43
44
INSTALLED_APPS = [
45
"django.contrib.admin",
46
"django.contrib.auth",
0 commit comments