Update {{cookiecutter.project_slug}}/config/settings/base.py

Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
This commit is contained in:
Aadith PM 2020-07-20 11:21:06 -05:00 committed by GitHub
parent 20986bafb7
commit ff69126087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,9 +327,7 @@ REST_FRAMEWORK = {
} }
# django-cors-headers - https://github.com/adamchainz/django-cors-headers#setup # django-cors-headers - https://github.com/adamchainz/django-cors-headers#setup
CORS_URLS_REGEX = { CORS_URLS_REGEX = r"^/api/.*$"
r"^/api.*$",
}
{%- endif %} {%- endif %}
# Your stuff... # Your stuff...