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
ifrequest.is_secureandcurrent_app.config['WTF_CSRF_SSL_STRICT']:
ifnotrequest.referrer:
self._error_response('The referrer header is missing.')
good_referrer=f'https://{request.host}/'ifnotsame_origin(request.referrer, good_referrer):
self._error_response('The referrer does not match the host.')
CSRF protection in
csrf.py
should prefer Origin header over Referer header if the former is available when checkingsame_site()
.The text was updated successfully, but these errors were encountered: