Live data from Hacker News

Firefox 90 supports Fetch Metadata Request Headers

blog.mozilla.org

81–90 of 109 posts

Re: Firefox 90 supports Fetch Metadata Request Headers

#81
post #2

How is this different from the origin header? Does the origin header not tell the webbserver if the requested originated from the same website? Is the origin header flawed in some way?

> Is the origin header flawed in some way?

tl;dr yes. It's not always sent.

Re: Firefox 90 supports Fetch Metadata Request Headers

#83

Does that mean that the quest of finding a working direct link to the image/video will soon become impossible?

Exactly - why do I as a user want this? I already need an extension to fake the Referer...

How can you be sure you actually need to send a Referer header. Whats the (user) benefit of sending one. I never send Referer and I have never had any problems as result.

I remove unwanted headers from requests generated by user agents I cannot adequately control, e.g., graphical web browsers, using a loopback-bound forward proxy. Perhaps this will be another one to remove.

Re: Firefox 90 supports Fetch Metadata Request Headers

#85
post #71

Pardon my ignorance. I thought the way to deal with csrf was csrf tokens. It seems like you would still have to ignore the headers and rely on the token in your logic if ever they disagreed. I’m not sure how to use these new headers

CSRF tokens have overhead and they have to be implemented for all inputs which isn't trivial (judging by amount of CSRF related vulnerabilities disclosed in hacker one reports). I think the intention here is to make cross site requests stand out so that they can be dealt with in a more streamlined/uniform fashion.

Perhaps as a fallback for when somebody forgets to use a token for an input. Thanks!

Re: Firefox 90 supports Fetch Metadata Request Headers

#86
post #2

How is this different from the origin header? Does the origin header not tell the webbserver if the requested originated from the same website? Is the origin header flawed in some way?

If all the parts of the site are at the same place, then checking an origin header would probably do the same thing. This seems to be adding semantics for when the frontend is requesting data from a different backend, as well as for specific types of content, and if it was based on a user action.

The user action part is very nice if it can't be overwritten with just javascript. The other parts I'm not sure what the browser is helping with, that can't just be done with standard headers.

Re: Firefox 90 supports Fetch Metadata Request Headers

#88
The original CORS protection is enforced by the browser, not the server. That means that it is much harder for it to cause a privacy problem. Given that this only works if you are using a browser anyway (any other user agent can spoof all this) I don't see how there can be any security gain from the server doing the enforcement. Which leaves me wondering whether the increased flexibility is worth the potential privacy issue.

Re: Firefox 90 supports Fetch Metadata Request Headers

#89
post #88

The original CORS protection is enforced by the browser, not the server. That means that it is much harder for it to cause a privacy problem. Given that this only works if you are using a browser anyway (any other user agent can spoof all this) I don't see how there can be any security gain from the server doing the enforcement. Which leaves me wondering whether the increased flexibility is worth the potential privac…

CORS doesn’t protect against CSRF. CORS also permits the initial request, where this change will permit the server to drop the clients request.

The problem is the header isn’t really usable until uptake is substantial, dropping requests now creates a workflow deviation based on user agent, meaning while some gain security, the header cannot be relied on entirely.

Post reply on HN