More Content Security Policy with report-to

Sending even more Content Security Policy (CSP) violation reports with report-to, asynchronously. Read general CSP reporting description for more details.

The CSP response header:

Content-Security-Policy: default-src 'none'; img-src 'self' https://www.michalspacek.cz; script-src 'nonce-1hNjWX7sOwQRSEG/WKRl+ix2' 'self' 'report-sample'; style-src 'self' 'nonce-1hNjWX7sOwQRSEG/WKRl+ix2'; form-action 'self'; report-to default

The Reporting-Endpoints response header:

Reporting-Endpoints: default="https://easel.has.report/report"

Load any image

show the code

… any JavaScript file

show the code

… any CSS file

show the code

Submit a form anywhere

With form-action, you can limit where forms on your page can be submitted, so if an attacker would inject a fake form or would change the action of your existing form, the browser wouldn't submit it. Please note that form-action is not part of the default-src fallback, and needs to be explicitly specified if you want to limit where forms are to be submitted.

show the code

Related specs & documents