We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4da1178 commit 109fd49Copy full SHA for 109fd49
config/settings/local.py
@@ -61,7 +61,9 @@
61
# django-cors-headers - https://github.com/adamchainz/django-cors-headers#setup
62
# Your stuff...
63
# CORS_ALLOW_ALL_ORIGINS = True
64
-CORS_ALLOWED_ORIGIN_REGEXES = [
65
- r"^http://localhost:3000$", # works for local dev
66
-]
+CORS_ALLOWED_ORIGIN_REGEXES = [r'{}'.format(s) for s in env.list("CORS_ALLOWED_ORIGIN_REGEXES", default=[r"^http://localhost:3000$"])]
+# CORS_ALLOWED_ORIGIN_REGEXES = [
+# r"^http://localhost:3000$", # works for local dev
67
+# ]
68
+print('CORS_ALLOWED_ORIGIN_REGEXES', CORS_ALLOWED_ORIGIN_REGEXES)
69
# ------------------------------------------------------------------------------
0 commit comments