Skip to content

Conversation

jpknoll
Copy link

@jpknoll jpknoll commented Apr 15, 2019

For #40

@juunas11
Copy link
Owner

Thanks for the contribution :)
I'd like to just clear up what is the correct schema for the Report-To header. Seems like MDN and the W3C spec differ slightly: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-to#Examples vs https://www.w3.org/TR/reporting/#id-member. Any idea which is correct?

@jpknoll
Copy link
Author

jpknoll commented Apr 16, 2019

It looks like both schema's mostly agree? I tried to use the W3C draft for building the validation code. We'll have to see if anything changes after the draft gets finalized.

@jpknoll
Copy link
Author

jpknoll commented Apr 18, 2019

Also, in the standard, it looks like they're not wrapping multiple reports with square brackets.

Separate groups by comma, no square brackets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants