apache/couchdb — pull request #233 by robertkowalski (2014-05-17 18:33:39+00:00)
Title: Add Experimental Content-Security-Policy-Support (CSP) for Fauxton

Like every web application, Fauxton is vulnerable against XSS
and CSP is a technology that tries to help against that.

The patch makes it possible to enable CSP for the /_utils path
and allows configuration of the sent header.

The default setting for the value of the header breaks the old
Futon, when CSP is enabled there. The old Futon has alot of
inline-JavaScript which is not allowed in the setting I have
chosen as default.

For development, the header is also sent from the node server
which launches Fauxton in dev-mode.