From bd0393dd625191d392d85fe3cb8d1437da47c620 Mon Sep 17 00:00:00 2001 From: p0lygun Date: Sat, 25 Mar 2023 17:18:02 +0530 Subject: [PATCH] fix: add CSRF_TRUSTED_ORIGINS to settings --- bfportal/bfportal/settings/production.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bfportal/bfportal/settings/production.py b/bfportal/bfportal/settings/production.py index ec4a833..737375e 100644 --- a/bfportal/bfportal/settings/production.py +++ b/bfportal/bfportal/settings/production.py @@ -8,6 +8,7 @@ SECRET_KEY = os.environ.get("PRODUCTION_KEY") ALLOWED_HOSTS = os.environ.get("PRODUCTION_HOST").split(",") ALLOWED_HOSTS.append("localhost") +CSRF_TRUSTED_ORIGINS = ["https://*.bfportal.gg/"] logger.debug(f"Allowed Hosts {ALLOWED_HOSTS}") try: