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 502dc15 commit bf341dcCopy full SHA for bf341dc
src/ledger/settings.py
@@ -26,7 +26,13 @@
26
# SECURITY WARNING: don't run with debug turned on in production!
27
DEBUG = bool(os.environ.get("DJANGO_DEBUG", default="1"))
28
29
-ALLOWED_HOSTS = ["*"] if DEBUG else ["localhost", "127.0.0.1", "https://ledger.unitystation.org"]
+ALLOWED_HOSTS = ["*"] if DEBUG else ["localhost", "127.0.0.1", "ledger.unitystation.org"]
30
+
31
+# CSRF
32
+CSRF_TRUSTED_ORIGINS = ['https://ledger.unitystation.org']
33
+CORS_ORIGIN_ALLOW_ALL = DEBUG
34
+CORS_ALLOWED_ORIGINS = ['https://ledger.unitystation.org']
35
+SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
36
37
# Application definition
38
0 commit comments