Skip to content

Commit

Permalink
Split allowed host with comma
Browse files Browse the repository at this point in the history
  • Loading branch information
svenseeberg committed Mar 17, 2024
1 parent bc44d9c commit 86748ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendrift_leeway_webgui/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#: This is a security measure to prevent HTTP Host header attacks, which are possible even under many seemingly-safe
#: web server configurations (see :setting:`django:ALLOWED_HOSTS` and :ref:`django:host-headers-virtual-hosting`)
ALLOWED_HOSTS = [".localhost", "127.0.0.1", "[::1]"] + [
x.strip() for x in os.environ.get("LEEWAY_ALLOWED_HOSTS", "").splitlines() if x
x.strip() for x in os.environ.get("LEEWAY_ALLOWED_HOSTS", "").split(",") if x
]

#: Enabled applications (see :setting:`django:INSTALLED_APPS`)
Expand Down

0 comments on commit 86748ea

Please sign in to comment.