w3c / css-validator

W3C CSS Validation Service
https://jigsaw.w3.org/css-validator/
Other
208 stars 105 forks source link

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

Open jamesrschmidt opened 6 years ago

jamesrschmidt commented 6 years ago

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.

mosbth commented 3 years ago

Any update on this?

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

dontcallmedom commented 3 years ago

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

aditsu commented 7 months ago

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