You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"If should fetching request be blocked as mixed content or should fetching request be blocked as content security returns blocked, set response to a network error."
This is designed to honor mixed content and CSP restrictions.
These checks, however, are dependent on the request context of the fetch. In the case of a SW handling a fetch event, it may perform a fetch() with a "fetch" request context which is different than the FetchEvent.request's context. This means the resulting Response may end up violating the intercepted network interceptions mixed content and CSP rules.
I think HTTP fetch step 2.2 needs to perform the same mixed content and CSP checks using the original FetchEvent.request's context and the returned Response's tainting.
The text was updated successfully, but these errors were encountered:
Currently Main Fetch step 4 says:
"If should fetching request be blocked as mixed content or should fetching request be blocked as content security returns blocked, set response to a network error."
This is designed to honor mixed content and CSP restrictions.
These checks, however, are dependent on the request context of the fetch. In the case of a SW handling a fetch event, it may perform a fetch() with a "fetch" request context which is different than the FetchEvent.request's context. This means the resulting Response may end up violating the intercepted network interceptions mixed content and CSP rules.
I think HTTP fetch step 2.2 needs to perform the same mixed content and CSP checks using the original FetchEvent.request's context and the returned Response's tainting.
The text was updated successfully, but these errors were encountered: