From 20a53c56b85d2480def3460e80952e2801bcc684 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Sun, 8 Sep 2024 23:49:22 +1000 Subject: [PATCH] Update settings.py --- url_manager/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/url_manager/settings.py b/url_manager/settings.py index f53af5e..0ec03c3 100644 --- a/url_manager/settings.py +++ b/url_manager/settings.py @@ -106,3 +106,5 @@ INTERNAL_IPS = [ # Add this at the end of the file STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' + +CSRF_TRUSTED_ORIGINS = os.environ.get('CSRF_TRUSTED_ORIGINS', '').split(',')