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
If an incoming request has no cookies there's no point in CSRF protecting it... UNLESS it's to a login form to protect againts login CSRF attacks. So the middleware should have an option for "always CSRF protect these paths" to allow /login to be protected.
If an incoming request has a Authorization: Bearer xxx token there's no need to CSRF protect it because regular user requests from authenticated browsers can't include the Bearer prefix - they will always look like this instead (which should be CSRF protected):
Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l
The text was updated successfully, but these errors were encountered:
Needed by Datasette in simonw/datasette#835
If an incoming request has no cookies there's no point in CSRF protecting it... UNLESS it's to a login form to protect againts login CSRF attacks. So the middleware should have an option for "always CSRF protect these paths" to allow
/login
to be protected.If an incoming request has a
Authorization: Bearer xxx
token there's no need to CSRF protect it because regular user requests from authenticated browsers can't include theBearer
prefix - they will always look like this instead (which should be CSRF protected):The text was updated successfully, but these errors were encountered: