CSP: report-to option
See original GitHub issueIs there a way to add a report-uri
or report-to
with report-endpoints
header?
It looks like report-uri
is deprecated in favor of report-to
but Firefox and Safari don’t support report-to
yet.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
CSP: report-to - HTTP - MDN Web Docs
The Content-Security-Policy Report-To HTTP response header field instructs the user agent to store reporting endpoints for an origin.
Read more >Content Security Policy - Report URI Documentation
Using the Reporting API to send CSP reports is simpler and you do not need to indicate the disposition of the report (enforced...
Read more >How to add Report-To Content-Security-Policy directly in web ...
Go to net-export and select "Start Logging to Disk" (I just leave the default options). Select the location to save the log file....
Read more >An Introduction To Report-URI - Csper
'report-uri' is a nifty feature built into content-security-policy that allows website owners to get ... Setting up report-uri in a policy is pretty...
Read more >CSP report-to - Reporting API Demos
Sending Content Security Policy (CSP) violation reports with Reporting API using the Report-To header, asynchronously and out-of-band, when the browser ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @Hongbo-Miao Those packages seem to be exactly what I need 🎉
In Helmet 4 (which was recently released), directives are not hard-coded. That means you can supply any directive you want and it should work.
I expect my code snippet will be a good starting point and should work for you, but I’m happy to help debug.