aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-07-11 10:04:00 +0300
committerFrederick Muriuki Muriithi2022-07-11 10:07:06 +0300
commite8be94e51942d63c05d5b6a229590a90ec620ac2 (patch)
tree30f820f65b7dd203bb2a53a4c856b4dbc0ecb4db
parent13a802c4a64d7bf0697e228398ba46e460a6b2f0 (diff)
downloadgenenetwork3-e8be94e51942d63c05d5b6a229590a90ec620ac2.tar.gz
Allow CORS everywhere by default
Allow the resources (endpoints) to be accessible from anywhere on the internet by default, while still allowing for restriction via CLI environment variable on a case by case basis.
-rw-r--r--gn3/settings.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/gn3/settings.py b/gn3/settings.py
index 78ae7cb..35f6f05 100644
--- a/gn3/settings.py
+++ b/gn3/settings.py
@@ -46,10 +46,7 @@ def parse_env_cors(default):
origin.strip() for origin in origins_str.split(",") if origin != ""]
return default
-CORS_ORIGINS = parse_env_cors([
- "http://localhost:*",
- "http://127.0.0.1:*"
-])
+CORS_ORIGINS = parse_env_cors("*")
CORS_HEADERS = [
"Content-Type",