Re: uri=referer not working?

On 23 Jun 2021, at 15:23, Theodore W. Hall wrote:

> Now when I click this validator link, the validator does not check the
> specific referer page but rather truncates the referer to the 
> top-level
> domain https://spacearchitect.org/

> Is there a different URL to force the old behavior?

This is a change in browsers. See [this article][1] for details.

Chrome and Firefox (at least) now default to 
`strict-origin-when-cross-origin`.

The validation service can’t get access to data the browser isn’t 
sending, so there can’t be a different URL to use instead that works 
of the `referer` header. You can, of course, explicitly specify the URL 
to validate in the query string: 
`https://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fexample.com%2F&profile=css3svg&usermedium=all&warning=1&vextwarning=&lang=en`

You can [change the policy][2] for your site, but that will leak 
information to everyone you link to.

I’d remove development tools from your actual pages in favour of 
having something like [this bookmarket][3]. (Related to that, see the 
section “Will there be a valid HTML5 icon?” in [this interview][4]


[1]: https://plausible.io/blog/referrer-policy
[2]: 
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
[3]: https://www.hbdesign.com/bookmarket-validating-css-html/
[4]: 
http://html5doctor.com/html5-check-it-before-you-wreck-it-with-miketm-smith/

Received on Friday, 25 June 2021 12:47:08 UTC