# DSCsrf
Very simple and (almost) plug-and-play global CSRF filtering for Flask using the Double Submit technique outlined on OWASP at https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)_Prevention_Cheat_Sheet#Double_Submit_Cookies.
How to use:
from dscsrf import Csrf from flask import Flask
app = Flask(__name__)
csrf = Csrf(app)
and that’s it!
For rendering the CSRF token in your application, under your form HTML use:
{{ csrf_token() }}
Release files for dscsrf 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dscsrf-1.0.tar.gz | 1.6 kB | Details |
Release files / dscsrf-1.0.tar.gz
| Download URL | dscsrf-1.0.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78220c79d3b3779cd30dc1a9d53942d65a1ea472f6623046caa940922819b7a3
|
|
BLAKE2b-256 checksum How to use checksums |
32d7dd4308e0afa261d44823584c06be54daad36cfbb4496ea93d08def58cd75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |