Skip to content

Commit

Permalink
fix cors paramenters
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Dec 21, 2023
1 parent 4e6c844 commit 6949bcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,3 +344,4 @@
GEOAPI_SETTINGS_CACHE_ENABLED = env.bool("GEOAPI_SETTINGS_CACHE_ENABLED", default=False)

CORS_ALLOWED_ORIGINS = env.list("DJANGO_CORS_ALLOWED_ORIGINS", default=[])
CORS_ALLOW_CREDENTIALS = True
4 changes: 3 additions & 1 deletion config/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@

# Your stuff...
# ------------------------------------------------------------------------------
CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOWED_ORIGIN_REGEXES = [
r"^http://localhost\:\d{4}$",
]

0 comments on commit 6949bcd

Please sign in to comment.