From 7a5a61f609605937c43f3cafdfead281ba3d1c27 Mon Sep 17 00:00:00 2001 From: jhynsoo Date: Tue, 14 Nov 2023 01:44:13 +0900 Subject: [PATCH] fix: Add CORS settings to product settings --- config/settings/product.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/settings/product.py b/config/settings/product.py index be2eaa6..62348f8 100644 --- a/config/settings/product.py +++ b/config/settings/product.py @@ -7,6 +7,9 @@ DEBUG = False ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(" ") +CORS_ALLOW_CREDENTIALS = True +CORS_ALLOWED_ORIGINS = os.environ.get("CORS_ALLOWED_ORIGINS").split(" ") + # Database # https://docs.djangoproject.com/en/4.1/ref/settings/#databases