- From: Jake Archibald <notifications@github.com>
- Date: Wed, 23 Feb 2022 09:04:22 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 23 February 2022 17:04:35 UTC
The thing you're asking for is different to the quoted text. You want a fetch from origin A to go via the service worker at origin B, whereas the quoted text is about a service worker at origin A controlling origin B. Iframes mean you can embed one site within another, and postMessage allows communication between the two. However, Firefox and Safari create a new origin for the iframed page when it's iframed in another origin, as it makes it harder for the two origins to share data about the user. I imagine Chrome will adopt a similar policy at some point. So, you'll likely need to use https://developer.mozilla.org/en-US/docs/Web/API/Document/requestStorageAccess -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1628#issuecomment-1049003881 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/issues/1628/1049003881@github.com>
Received on Wednesday, 23 February 2022 17:04:35 UTC