Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPrevent tracking via alternative services (`Alt-Svc` header) #4903
Comments
|
Right now @fmarier is going to set the |
|
Also related to QUIC is #3855. |
…#4903) Since cross-origin alternative services can be used to generate a super cookie for users (much like HSTS super cookies), we restrict their expiry to 10 seconds. This ensures that they can be used in the immediate request and any sub-resources but that they do not persist beyond this navigation.
|
Here's how alternative services are implemented in Chrome. When an Then we lookup alternative services in that data structure to verify whether the request supports priorities (also here) and to create HTTP "jobs". Therefore, a good place to restrict this feature is at the point where we create and add the
|
|
Alternative services are used for the following purposes:
I have successfully tested cases 1-3 on Firefox and 4 is also implemented while case 5 is waiting on QUIC support. Chrome on the other hand only supports upgrading connections to Given that Brave doesn't enable QUIC by default (users have to enabled it via Should the support for H2 alternative services be fixed and enabled in Chrome, we should revisit this bug and perhaps limit the alternative services to same-origin ones only. Right now, I don't believe that this is a viable tracking mechanism in Brave. |
|
QUIC will be enabled by default in Chromium 83: https://groups.google.com/a/chromium.org/d/topic/chromium-dev/JjKJ28aDLxg/discussion |
alt-svc by default have a 24 hour lifetime, which can be modified with the
maoption.This can be used for tracking, in a similar way to HSTS cookies.
My initial best guess is that the safest option is to never cache alt-svc values