An updated CSRF extension for Flask.
Project description
Flask-SeaSurf
SeaSurf is a Flask extension for preventing cross-site request forgery (CSRF).
CSRF vulnerabilities have been found in large and popular sites such as YouTube. These attacks are problematic because the mechanism they use is relatively easy to exploit. This extension attempts to aid you in securing your application from such attacks.
This extension is based on the excellent Django middleware.
Installation
Install the extension with one of the following commands:
$ easy_install flask-seasurf
or alternatively if you have pip installed:
$ pip install flask-seasurf
Usage
Using SeaSurf is fairly straightforward. Begin by importing the extension and then passing your application object back to the extension, like this:
from flask_seasurf import SeaSurf
csrf = SeaSurf(app)
Documentation
The Sphinx-compiled documentation is available here: https://flask-seasurf.readthedocs.io/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Flask-SeaSurf-2.0.0.tar.gz.
File metadata
- Download URL: Flask-SeaSurf-2.0.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e4003be1580ea8663d6bd3adf272f549ca4d735848895192618ed1945d5ad3c
|
|
| MD5 |
96292fb6cb377e0933b48e2982f88721
|
|
| BLAKE2b-256 |
2e9cbc48ee775453ba3540da5986012f9640bac1261ba7d23f3da45cc3d2b58a
|
File details
Details for the file Flask_SeaSurf-2.0.0-py3-none-any.whl.
File metadata
- Download URL: Flask_SeaSurf-2.0.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
024605511bdd1a61038e1369386c01fcd24b4adcb449bb62e1d32dbb5fe043b2
|
|
| MD5 |
4d67e5e27ca40d98f1b78379609025bb
|
|
| BLAKE2b-256 |
47d457860c1e549d34435ee6c018e489c15424067edf954f04f085fc3d12da39
|