You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Map.bind_to_environ can be passed an environ or a request object. But it always calls get_host(environ). If it used request.host if a request was passed, this would check request.trusted_hosts during routing. See pallets/flask#5636
The text was updated successfully, but these errors were encountered:
Consider making request.trusted_hosts a property, so setting it would automatically trigger validation. I'm not sure if this is a good idea or not. It's not particularly useful in Werkzeug, where the request is available to be configured before routing. It's only really convenient in Flask where a view (after routing) may want to set specific trusted hosts.
Map.bind_to_environ
can be passed an environ or a request object. But it always callsget_host(environ)
. If it usedrequest.host
if a request was passed, this would checkrequest.trusted_hosts
during routing. See pallets/flask#5636The text was updated successfully, but these errors were encountered: