-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending Sec-Fetch-Storage-Access: none
on every cross-origin request seems wasteful
#15
Comments
If you execute fetch("https://httpbin.org/response-headers?Set-Cookie=a=b;SameSite=None;HttpOnly;Secure",
{credentials:"include"}) in a browser console while visiting https://stackoverflow.com,
If you execute the same command while visiting https://httpbin.org
If the server treated absence and |
But the absence of
It doesn't seem like a reliable enough signal to be useful. |
In all three cases, the server can send an (unpartitioned) cookie and be sure that the browser will honor it. That is the signal I expect from the absence of the |
The main reason for sending something on cross-site requests (and not omitting the header entirely) is to indicate that the browser supports this feature (and therefore would have sent I.e., the presence of I'm open to other suggestions here; are there better methods for doing feature detection for HTTP-based features? |
@johannhof and I went back to the drawing board a bit on this, but we're still confident that sending If we omit
On the surface, it seems that omitting Closing this issue for now, but feel free to follow up if you have more thoughts. |
I cannot see any user benefit to sending
on every cross-origin request. Since the server is required to treat the absence of the header as
none
, it would be more efficient to just not send it at all.The text was updated successfully, but these errors were encountered: