There's some risk to altering the `referer` header, as sites do use it in various ways. This risk seems manageable. Based on Chrome's telemetry from Canary/Dev, the header is rarely long enough to be affected: capping the length at 4k would affect 1 in 10,000 requests. The percentiles look like:
* 25.00% 27.53
* 50.00% 44.76
* 75.00% 79.71
* 95.00% 263.3
* 99.00% 986.5
* 99.50% 1232
* 99.90% 1956
* 99.99% 4162
Still, there's some risk that dropping path information could have an adverse affect on some site, somewhere. We ran an experiment in Canary/Dev that stripped headers down to an origin at 4k and 2k, but didn't find any statistically relevant difference in error rates for either top-level navigations or subresource requests.
Mozilla and Edge folks both are willing follow us to 4k if we land it successfully (in fact, both suggested lower limits).
Firefox: Public support (https://github.com/whatwg/fetch/issues/903)
Edge: No public signals (https://github.com/whatwg/fetch/issues/903)
Safari: No public signals
Web developers: No signals
None.
None.
We considered simply cutting the `Referer` header's value at the limit, rather than stripping it down to an origin. This would potentially leave the URL in a strange state by breaking %-encoding, or removing security-critical GET parameters. An origin is significantly more likely to be safe.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to blink-dev
lgtm: I think Edge is meant to say Public support. ;-)
ati...@outlook.com
unread,
Oct 4, 2019, 12:03:38 PM10/4/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to blink-dev
Thank you for this security feature update. However, this is breaking some features for our long URLs. How can I disable this feature temporarily from command line so it does not limit?
Mike West
unread,
Oct 4, 2019, 12:12:25 PM10/4/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ati...@outlook.com, blink-dev
For the moment, you can append `--disable-features=CapRefererHeaderLength` to your command line. Note, though, that I intend to remove this in Chrome ~80, which will hit stable early next year. I hope you can find a workaround in the next few months! :)
-mike
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.