paragonie / csp-builder

Build Content-Security-Policy headers from a JSON file (or build them programmatically)
https://paragonie.com/projects
MIT License
544 stars 39 forks source link

report-uri deprecated #27

Open Nenglish7 opened 6 years ago

Nenglish7 commented 6 years ago

According to that this is no longer supported.

paragonie-scott commented 6 years ago

Though the report-to directive is intended to replace the deprecated report-uri directive, report-to isn’t supported in most browsers yet. So for compatibility with current browsers while also adding forward compatibility when browsers get report-to support, you can specify both report-uri and report-to:

Nenglish7 commented 6 years ago

Ah both have to be set. Sorry for my not paying attention, in that case your example should be fixed?

bnomei commented 4 years ago

will the example and test be updated?