twaldear / flask-secure-headers Goto Github PK
View Code? Open in Web Editor NEWSecure Header Wrapper for Flask Applications
License: MIT License
Secure Header Wrapper for Flask Applications
License: MIT License
This extension is good for adding secure headers to 200 status code by using @sh.wrapper() decorator. How to integrate this to all 400 and 500 errors?
It would be great to see this made python3 compatible. Any plans for that?
Hey, I was just comparing this library against flask-csp and finally realized that they're by the same person!
Out of curiosity, is flask-secure-headers meant to supersede flask-csp?
Can you please remove the ',' in line no 70 where you put the except.
SimpleHeader.check_valid seems to only end up checking 1 param before returning True, and so not all the validation happens I think.
https://github.com/twaldear/flask-secure-headers/blob/master/flask_secure_headers/headers.py#L11
Also, I am getting a validation exception for the default values, in cases where it does end up hitting the validate for report-uri.
https://github.com/twaldear/flask-secure-headers/blob/master/flask_secure_headers/core.py#L37
Defaults to /hpkp_report
but
https://github.com/twaldear/flask-secure-headers/blob/master/flask_secure_headers/headers.py#L101
Says only *
is valid, unless I am reading it wrong.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.