couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowalski <...@git.apache.org>
Subject [GitHub] couchdb pull request: Add Experimental Content-Security-Policy-Sup...
Date Sat, 17 May 2014 18:33:40 GMT
GitHub user robertkowalski opened a pull request:

    https://github.com/apache/couchdb/pull/233

    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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/robertkowalski/couchdb erlang-csp

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb/pull/233.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #233
    
----
commit 5262d5626ff85aa19eeb451f240bc63e7a9e440c
Author: Robert Kowalski <rok@kowalski.gd>
Date:   2014-05-17T16:37:30Z

    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.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message