Asgi-csrf

Latest version: v0.11

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

0.11

- Switched from `setup.py` to `pyproject.toml` 34
- Fixed several deprecation warnings. 36, 37

0.10

- Fix for intermittent mysterious error with some form submissions. 21
- New options for customizing the cookie that is set: `cookie_path`, `cookie_domain`, `cookie_secure`, `cookie_samesite`. Thanks, [Kevin Abraham](https://github.com/abraha2d). #25
- Ability to customize the error page using the new `send_csrf_failed` argument. 28

0.9

- New `skip_if_scope=` callback function mechanism to allow custom logic for skipping CSRF protection, based on the ASGI scope. See [skip_if_scope documentation](https://github.com/simonw/asgi-csrf/blob/main/README.md#skip_if_scope). [20](https://github.com/simonw/asgi-csrf/issues/20)

0.8

- `always_set_cookie=True` option for if you want to set a missing CSRF token even on pages that do not display a hidden form field. 16

0.7.2

- Fixed broken tests when running against latest `httpx`. 18

0.7.1

- Fix for ASGI exception on non-http scopes. 15

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.