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

`check/referer` gives confusing results due to more default restrictive referer policies in browsers

Open jamesrschmidt opened this issue 7 years ago • 3 comments

The W3C validators for html and css are no longer recognizing the correct referrer url from my website (they used to). Possibly, this is because there is a tilde (~) in the url. In particular, (http://users.ugent.be/~jaschmid/) shows the validation for (http://users.ugent.be/) with the recommended code <a href="http://validator.w3.org/check?uri=referer"> (html) and <a href="http://jigsaw.w3.org/css-validator/check/referer"> (css). I am able to get the correct validation with <a href="http://validator.w3.org/check?uri=users.ugent.be/~jaschmid/"> and <a href="http://jigsaw.w3.org/css-validator/validator?uri=users.ugent.be/~jaschmid/">, however.

jamesrschmidt avatar Apr 23 '18 07:04 jamesrschmidt

Any update on this?

We are using it for education and the student server uses ~stud21 to host the student websites.

mosbth avatar Sep 14 '21 14:09 mosbth

re-titled the issue in light of the investigation conducted in https://github.com/w3c/markup-validator/issues/34 which also lists some possible workarounds

dontcallmedom avatar Sep 22 '21 08:09 dontcallmedom

Workaround: add referrerpolicy="unsafe-url" to the validation link.

aditsu avatar Mar 20 '24 12:03 aditsu