Re: [ServiceWorker] Define some way for foreign fetch to decide on opaqueness of responses (#841)

> I tend to think we need to make it such that each layer needs to use an API to reveal it to the next

Agreed. I don't think this creates a new kind of response. The headers are filtered in the same way they are now via CORS, or the request becomes opaque like it does with no-cors.

The return of `foreignFetchEvent.makeVisibleTo()` should just be a wrapper around the response. `foreignFetchEvent.respondWith()` unwraps it unless there's a security error.

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

Received on Thursday, 25 February 2016 11:00:52 UTC