Libreria di snippet

Snippet pronti e testati per Python, Flask, JavaScript, SQL, HTML, CSS e Bash. Aprili nel playground.

3 snippet

flask

Safe file upload

Check the extension, size and filename before saving an upload.

intermediate #uploads#security#files
flask

Rate limit a route

Stop brute-force attempts with Flask-Limiter.

beginner #security#rate-limit#login
flask

Send CSRF token with fetch

Put the token in a meta tag and send it as X-CSRFToken from JavaScript.

beginner #csrf#security#javascript