Open annevk opened 4 years ago
I think we wanted to provide the full URL when both pages were same-origin in order to make reports more actionable.
@arturjanc: Would always using the referrer URL be ok?
Is there a case where the referrer and the full URL will be different for a same-origin navigation, aside from things like Referrer-Policy: no-referrer
?
If not, I don't feel strongly about special-casing same-origin URLs here so my guess is that always sending the referrer will be fine.
In the latest version, we have two fields, one for the referrer which we always send, and another for the URL which we only fill if they are same-origin.
Why not always use the referrer? If a site includes user information in the URL sometimes they might not wish for that to go into their COOP logs and it seems there's no way to prevent that with the current setup.