Add API module to receive CSP reports.
authorBrian Wolff <bawolff+wn@gmail.com>
Mon, 29 Feb 2016 03:57:10 +0000 (22:57 -0500)
committerBrian Wolff <bawolff+wn@gmail.com>
Tue, 28 Jun 2016 19:37:27 +0000 (15:37 -0400)
commitae0bae92afe0307dfe9f1868302c79099de3cc2f
tree5237eb0e350d2e398e6bf5dedeb2e4f448d06f6a
parent02118d4250dfc61c17f3be1dfcaf8c92ad9d4d33
Add API module to receive CSP reports.

There are two expected usecases for this:
* The proposed builtin CSP support at I80f6f4
* Setting CSP headers on media served from upload.wikimedia.org

This was split from I80f6f46

For details on CSP, see http://www.w3.org/TR/CSP2/
See also https://www.mediawiki.org/wiki/Requests_for_comment/Content-Security-Policy

Related to (but not directly a fix for) T117618

Bug: T135963
Change-Id: Id92126ca7707186757e77fe50cd336ff1acb8b3f
autoload.php
includes/api/ApiCSPReport.php [new file with mode: 0644]
includes/api/ApiMain.php
includes/api/i18n/en.json
includes/api/i18n/qqq.json