v2.0.0
Bump version 1.4.5 → 2.0.0
Breaking changes
- Initializer arguments other than
appandsecretare now keyword-only.- This shouldn't affect you if you add the middleware normally using Starlette's
Middlewareor FastAPI's.add_middleware.
- This shouldn't affect you if you add the middleware normally using Starlette's
New features
- Add a
required_urlsargument to set route patterns where CSRF should always be enforced, no matter the method or cookies present.- Useful to prevent attacks like Login CSRF.
- Thanks @bkis for the idea and feedback