andersju / webbkoll

An online tool that checks how a website is doing with regards to privacy
MIT License
266 stars 27 forks source link

Does not honor Referrer-Policy as a HTTP header #1

Closed rugk closed 7 years ago

rugk commented 8 years ago

Webservers can also use HTTP headers to express their referrer policy. However webbkoll does still show the part in red when a HTTP header is used instead of a meta tag.

Tested with: Referrer-Policy: same-origin

https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-header

andersju commented 8 years ago

Neither Firefox nor Chrome actually supports this in stable versions at the moment (see 1, 2), although they will soon-ish. It reminds me however that they do support the older CSP referrer directive - I'll add support for this. Thanks!

rugk commented 8 years ago

Would you mind keeping this issue open for implementing the "Referrer-Policy" header when Firefox and/or Chrome finally support it?

andersju commented 8 years ago

Ah, yes, of course! Too little sleep lately...

andersju commented 7 years ago

Fixed but not live on webbkoll.dataskydd.net yet - Firefox has "basic support" since version 50 (current) but won't support same-origin until 52 (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy#Browser_compatibility) and Chrome will support it from next version, 56 (https://www.chromestatus.com/features/5639972996513792), so I'll wait a bit.