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 is called when creating the request context, and MapAdapter.match is called when the context is pushed. Both of these places catch routing exceptions, which are then raised during dispatch after before_request and before the view. I think it makes sense to check this in Flask.create_url_adapter, as then no matching be attempted if the host is invalid.
If
request.trusted_hosts
is set, it will be checked when accessingrequest.host
/url
/etc. AddTRUSTED_HOSTS
config, and check it during routing.The text was updated successfully, but these errors were encountered: