Re: [whatwg/fetch] Adds "audioworklet" and "paintworklet" as destinations. (#527)

> As currently written import() would be invoked under an opaque origin. This means no CORS or service worker AFAICT.

I just want to follow-up here to clarify that I don't think `imports()` will work in a global with an opaque origin like worklets:

* es modules require CORS (last I checked)
* Sending a CORS requests requires setting an Origin header
* A global with an opaque origin cannot set an Origin (AFAIK)
* All origins (including the owner document's) is considered cross-origin

So, at least in firefox, I do not expect `imports()` to function in worklets.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/527#issuecomment-340442760

Received on Monday, 30 October 2017 13:26:42 UTC