diff options
author | Frederick Muriuki Muriithi | 2022-07-11 10:04:00 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-07-11 10:07:06 +0300 |
commit | e8be94e51942d63c05d5b6a229590a90ec620ac2 (patch) | |
tree | 30f820f65b7dd203bb2a53a4c856b4dbc0ecb4db | |
parent | 13a802c4a64d7bf0697e228398ba46e460a6b2f0 (diff) | |
download | genenetwork3-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.py | 5 |
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", |