check_authmethod of the reflex method is called from the frontend the template will be updated according to your logic in the reflex.
AllowedHostsOriginValidatorwhich means that a websocket can only be opened from the same domains in
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.pyfile to reflect that.