markup-validator icon indicating copy to clipboard operation
markup-validator copied to clipboard

https://validator.w3.org/check?uri=referer no longer (?) checking actual referer, but my homepage

Open PeterBDa opened this issue 4 years ago • 4 comments
trafficstars

All my webpages contain this link, however I notice that all links now result in the checking of my home page, and not the actual referer. I'm sure this didn't use to be the case (but last checked long ago)

PeterBDa avatar Apr 15 '21 18:04 PeterBDa

Same problem for me.

GingkoFr avatar May 05 '21 09:05 GingkoFr

I have since discovered that this is not a problem with the validator, but due to the fact that modern browsers truncate the URI of the referer for security reasons. You can bypass this by adding referrerpolicy='unsafe-url' to the link. See here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy

PeterBDa avatar May 05 '21 09:05 PeterBDa