0.12.4 ws fix

This commit is contained in:
SDE
2024-01-22 18:10:32 +03:00
parent dbe948ae5f
commit 9af72d30f4

View File

@@ -22,13 +22,14 @@ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TWB.settings')
application = ProtocolTypeRouter({
'http': get_asgi_application(),
"websocket": AllowedHostsOriginValidator(
QueryAuthMiddleware(
URLRouter(
websocket_urlpatterns
)
)
),
"websocket":
# AllowedHostsOriginValidator(
QueryAuthMiddleware(
URLRouter(
websocket_urlpatterns
)
# )
),
# 'websocket': AuthMiddlewareStack(
# URLRouter(
# websocket_urlpatterns