We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a135228 commit 728173dCopy full SHA for 728173d
channels/security/websocket.py
@@ -140,7 +140,7 @@ def AllowedHostsOriginValidator(application):
140
"""
141
allowed_hosts = settings.ALLOWED_HOSTS
142
if settings.DEBUG and not allowed_hosts:
143
- allowed_hosts = ["localhost", "127.0.0.1", "[::1]"]
+ allowed_hosts = [".localhost", "127.0.0.1", "[::1]"]
144
return OriginValidator(application, allowed_hosts)
145
146
0 commit comments