yesod-csp

I've just released yesod-csp. This helps you add Content Security Policy headers to your web responses using Haskell data types. For example:

This will generate a header like this:

Content-Security-Policy headers help reduce the risk of XSS attacks and bad assets.

Links: