attempt to fix csrf bug

This commit is contained in:
Walter 2025-02-21 02:53:14 +01:00
parent 3623860302
commit 532a2815c8

View File

@ -31,6 +31,7 @@ def load_insecure_key():
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY") or load_insecure_key() SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY") or load_insecure_key()
ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS", "*").split(" ") ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS", "*").split(" ")
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
print(f"{DEBUG=}, {ALLOWED_HOSTS=}") print(f"{DEBUG=}, {ALLOWED_HOSTS=}")