fixed websockets in asgi server with static files

This commit is contained in:
Jenny Danzmayr 2024-03-28 19:34:34 +01:00
parent ee5f549297
commit e2fcf0ffeb

View file

@ -41,4 +41,11 @@ with suppress(ImportError):
), ),
Mount(path='/', app=django_asgi), Mount(path='/', app=django_asgi),
]), ]),
"websocket": AllowedHostsOriginValidator(
AuthMiddlewareStack(
UserPermissionsChannelMiddleware(
URLRouter(websocket_urlpatterns),
),
),
),
}) })