diff --git a/{{cookiecutter.project_slug}}/config/settings/base.py b/{{cookiecutter.project_slug}}/config/settings/base.py index 2efd2fcd..f69908c2 100644 --- a/{{cookiecutter.project_slug}}/config/settings/base.py +++ b/{{cookiecutter.project_slug}}/config/settings/base.py @@ -327,9 +327,7 @@ REST_FRAMEWORK = { } # django-cors-headers - https://github.com/adamchainz/django-cors-headers#setup -CORS_URLS_REGEX = { - r"^/api.*$", -} +CORS_URLS_REGEX = r"^/api/.*$" {%- endif %} # Your stuff...