Skip to content

Commit

Permalink
Merge pull request #3151 from babsey/nest-server-default-origins
Browse files Browse the repository at this point in the history
Add 127.0.0.1 to default origins
  • Loading branch information
terhorstd authored Mar 13, 2024
2 parents 7b9e2a4 + 1612e48 commit 2712786
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:*,http://127.0.0.1:*"
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 2712786

Please sign in to comment.