Exposing Sec-Fetch
headers to Service Workers via Request().Headers()
#38
Labels
enhancement
New feature or request
Authors can use Service Workers and the Cache API to serve responses from the cache in a SW; when this happens an attacker may be able to make a request to the target origin and have the response served by that origin's SW. If a response was previously cached for a
same-origin
request, but the SW responds with the same data to across-site
request, it could return a sensitive resource to the attacker, allowing her to learn information via the usual information leak vectors.Should we consider exposing the values of
Sec-Fetch-*
headers via the Headers() API to allow developers to implement logic in SWs similar to what they may have server-side? I think this should be safe, but we should definitely think about this.The text was updated successfully, but these errors were encountered: