Skip to content

Commit

Permalink
feat: Add credentials allow settings for CORS (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
rehan892 authored Jul 8, 2024
1 parent 1b52135 commit 841c73e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions {{cookiecutter.project_slug}}/backend/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...
# ------------------------------------------------------------------------------
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
# ------------------------------------------------------------------------------
# CORS settings
CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOW_CREDENTIALS = True
{%- endif %}
# Your stuff...
# ------------------------------------------------------------------------------

0 comments on commit 841c73e

Please # to comment.