check_auth
method of the reflex method is called from the frontend the template will be updated according to your logic in the reflex.AllowedHostsOriginValidator
which means that a websocket can only be opened from the same domains in ALLOWED_HOSTS
.ASGI_APPLICATION
to sockpuppet.routing.application
. So if you need to not use the origin validator for any reason you'll need to create a routing file of your own and update the settings.py
file to reflect that./ws/sockpuppet-sync
.