fix: Add CORS settings to product settings

This commit is contained in:
jhynsoo 2023-11-14 01:44:13 +09:00
parent ef2d7c2340
commit 7a5a61f609

View File

@ -7,6 +7,9 @@ DEBUG = False
ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(" ") ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(" ")
CORS_ALLOW_CREDENTIALS = True
CORS_ALLOWED_ORIGINS = os.environ.get("CORS_ALLOWED_ORIGINS").split(" ")
# Database # Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases # https://docs.djangoproject.com/en/4.1/ref/settings/#databases