Re: [ServiceWorker] When responses from origin A are used in response to a request for origin B, treat as a redirect (#560)

The relevant specification for this is Fetch. That "guidance" text should probably be removed from `respondWith()` or demoted to a note of sorts. It's not very clear nor necessarily accurate in the face of redirects (which modify the request URL).

What happens in Fetch is that the response URL is overwritten by the request URL just before the point where we hand the response back to the caller.

CSP needs to happen on the original response URL though (and perhaps also on any redirects it passed while in the service worker, that's not agreed upon as of yet).

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/560#issuecomment-90833792

Received on Wednesday, 8 April 2015 07:49:45 UTC