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

The other thing we need to think through and define is that the `response` member of the dictionary the promise is resolved with that is passed to `respondWith()` can contain any kind of response. So when you pass in an opaque response, we cannot make that visible. If you pass in a CORS response, we can only safelist the headers already safelisted by the CORS response. If you pass in a foreign-fetch filtered response, you get the idea.

I don't think we want to make filtered responses multiple layers deep since that would complicate things elsewhere. Though it might be worth trying to think through that angle too.

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

Received on Saturday, 27 February 2016 07:49:45 UTC