securecookies.extras

securecookies.extras

starlette-securecookies also ships with some common middleware and tools modified and extended to work with secure cookies.

  • csrf.SecureCSRFMiddleware: Adds compatibility to the CSRF middleware provided by starlette_csrf. To use it, simply add it to your list of middleware (keep in mind the ordering). If you don't want to specify starlette_csrf as a direct dependency, you can also install it through the [csrf] package extra.
 1"""
 2# securecookies.extras
 3
 4starlette-securecookies also ships with some common middleware and tools modified and
 5extended to work with secure cookies.
 6
 7- **`csrf.SecureCSRFMiddleware`**: Adds compatibility to the CSRF middleware provided
 8by [starlette_csrf](https://github.com/frankie567/starlette-csrf). To use it, simply
 9add it to your list of middleware (keep in mind the ordering). If you don't want to
10specify `starlette_csrf` as a direct dependency, you can also install it through the
11`[csrf]` package extra.
12"""
13
14__all__ = []  # type: ignore