-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(csp): Add support for Reporting API (#3277)
This PR adds support for [Reporting API](https://developer.mozilla.org/en-US/docs/Web/API/Reporting_API) to [CSP security reports](https://developer.mozilla.org/en-US/docs/Web/API/CSPViolationReportBody). Reporting API has [slightly different format](https://csplite.com/csp66/#sample-violation-report) for the CSP report body, but the biggest difference that browser sends the CSP reports in batches. Since we also want to support old format, I've tried to minimize the changes and re-used as much code as I could.
- Loading branch information
Showing
5 changed files
with
227 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters