Skip to main content
Feather adds security headers to all responses in production (DEBUG=False). No configuration needed — they are applied by default and skipped in development.

Default CSP

Extending it

Custom directives are merged with the defaults, so you only specify what you are changing. For Stripe:
config.py

Disabling

Not recommended. If a third-party script is being blocked, add its origin to the relevant directive rather than turning the whole header off.
The strict script-src 'self' is why inline <script> blocks and onclick= handlers are feather check errors. Code that works in development would be silently blocked by CSP in production.