Skip to content

Commit

Permalink
Merge pull request #2952 from babsey/fix-nest-server-env
Browse files Browse the repository at this point in the history
Fix default origins for NEST Server
  • Loading branch information
jougs authored Sep 25, 2023
2 parents dd462b6 + 36ae7e5 commit a326891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynest/nest/server/hl_api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_boolean_environ(env_key, default_value="false"):
return env_value.lower() in ["yes", "true", "t", "1"]


_default_origins = "http://localhost"
_default_origins = "http://localhost:*"
ACCESS_TOKEN = os.environ.get("NEST_SERVER_ACCESS_TOKEN", "")
AUTH_DISABLED = get_boolean_environ("NEST_SERVER_DISABLE_AUTH")
CORS_ORIGINS = os.environ.get("NEST_SERVER_CORS_ORIGINS", _default_origins).split(",")
Expand Down

0 comments on commit a326891

Please sign in to comment.