Content Security Policy can be used to generate reports describing attempts to attack your site. This post briefly explains how this works, and presents a simple example script that can be used to process these reports. How CSP’s report-uri directive works CSP violation reporting can be enabled by specifying one or more endpoints using the report-uri policy directive: Content-Security-Policy: defa