0.12.3 ws fix

This commit is contained in:
SDE
2024-01-22 18:08:55 +03:00
parent 437142fba0
commit 885d36a90c

View File

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