yesod-csp-0.2.0.0: Add CSP headers to Yesod apps

Safe HaskellNone
LanguageHaskell2010

Yesod.Csp.Example

Description

Assorted examples demonstrating different policies.

Synopsis

Documentation

getExample1R :: Handler Html Source

Allows scripts from self.

getExample2R :: Handler Html Source

Allows all styles over https.

getExample3R :: Handler Html Source

Allows images from a certain uri.

getExample4R :: Handler Html Source

Allows all images.

getExample5R :: Handler Html Source

Disallows images entirely.

getExample6R :: Handler Html Source

Blocks forms from being submitted

runExamples :: IO () Source

Run a webserver to serve these examples at 1, 2, etc.