Giter Club home page Giter Club logo

flask-csp's People

Contributors

abjugard avatar smartmanoj avatar twaldear avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flask-csp's Issues

Tip: remind developers that the `data` permission should be spelled `'data:'`

I know it's redundant and already mentioned in the guide you link to, but it could be helpful to remind users that the data permission is spelled with a colon, e.g.:

@csp_header({'default-src':"'none'",'script-src':"'self'", 'font-src': "data: 'self'"})

..if you are a little sloppy and in a hurry like me it was quite possible to lose a bit of time there.

Thanks for a nice extension!

RFE: Refactor to allow different interaction styles

It would be helpful if csp.py were refactored to make it easier to use it in other ways besides decorating a standard Flask route. For example, extracting a function to apply CSP to a Flask response, so that it could be called from an after_app_request hook.

Remove compiled python sources

Hey,

There are .pyc files in the repo. Noone needs them when cloning the repo, so please remove them and add .gitignore file with *.pyc record.

Also, this might be handy.

Error with comma in csp.py: "except Exception, e:"

F:\Coding\app> python dash.py
Traceback (most recent call last):
File "dash.py", line 3, in
from flask_csp.csp import csp_header
File "C:\ProgramData\Anaconda3\lib\site-packages\flask_csp\csp.py", line 14
except Exception, e:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.