diff --git a/{{cookiecutter.project_slug}}/backend/config/settings/base.py b/{{cookiecutter.project_slug}}/backend/config/settings/base.py index 59245f42..b16217fa 100644 --- a/{{cookiecutter.project_slug}}/backend/config/settings/base.py +++ b/{{cookiecutter.project_slug}}/backend/config/settings/base.py @@ -350,11 +350,6 @@ "MUTATIONS_DEFAULT_HANDLE_ERRORS": True, } {%- endif %} -{%- if cookiecutter.use_graphql == "y" or cookiecutter.use_drf == "y" %} -# ------------------------------------------------------------------------------ -# CORS settings -CORS_ALLOW_ALL_ORIGINS = True -{%- endif %} # Your stuff... # ------------------------------------------------------------------------------ diff --git a/{{cookiecutter.project_slug}}/backend/config/settings/local.py b/{{cookiecutter.project_slug}}/backend/config/settings/local.py index e7fbce6a..723e6233 100644 --- a/{{cookiecutter.project_slug}}/backend/config/settings/local.py +++ b/{{cookiecutter.project_slug}}/backend/config/settings/local.py @@ -67,6 +67,7 @@ # ------------------------------------------------------------------------------ # CORS settings CORS_ALLOW_ALL_ORIGINS = True +CORS_ALLOW_CREDENTIALS = True {%- endif %} # Your stuff... # ------------------------------------------------------------------------------