From 60be2f91396af25597240c122026332351d30fe6 Mon Sep 17 00:00:00 2001 From: jhynsoo Date: Tue, 14 Nov 2023 21:22:30 +0900 Subject: [PATCH] fix: Update csrf settings --- config/settings/product.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/settings/product.py b/config/settings/product.py index c2a3ecf..0dfbda8 100644 --- a/config/settings/product.py +++ b/config/settings/product.py @@ -5,11 +5,13 @@ from .base import * DEBUG = False ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(" ") -CSRF_TRUSTED_ORIGINS = os.environ.get("CSRF_TRUSTED_ORIGINS").split(" ") CORS_ALLOW_CREDENTIALS = True CORS_ALLOWED_ORIGINS = os.environ.get("CORS_ALLOWED_ORIGINS").split(" ") +CSRF_COOKIE_DOMAIN = os.environ.get("CSRF_COOKIE_DOMAIN") +CSRF_TRUSTED_ORIGINS = os.environ.get("CSRF_TRUSTED_ORIGINS").split(" ") + # Database # https://docs.djangoproject.com/en/4.1/ref/settings/#databases