Re: [fetch] Network policies should be enforced asynchronously (#161)

Fetch does enable enforcing same-origin (mode is same-origin) and fetch is asynchronous. Workers already use fetch but workers also have synchronous checks since that is how the specification was written. I think there's various other features that do the same, e.g., WebSocket although that may not be the best example. But say, EventSource.

Fetch also has the data thing as the same-origin data-URL flag so we could probably use that indeed. But again, the question is whether we can change the way the worker constructors work or not.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/161#issuecomment-156418412

Received on Friday, 13 November 2015 12:25:46 UTC