stable

Clone or download

Read-only

Add the browser user agent to the logged CSP violation reports

The user-agent can already be found by matching the reports to the requests in the nginx access logs but having all in the same place makes the triage and filtering of the incoming reports easier. Part of request #17967: Deploy a useful content security policy Change-Id: I52c3f8a1b9dbe23aac4a0e41c13df545d4b536b1

Modified Files

Name
M src/common/ContentSecurityPolicy/CSPViolationReportToController.php +5 −3 Go to diff View file
M tests/unit/common/ContentSecurityPolicy/CSPViolationReportToControllerTest.php +9 −6 Go to diff View file