| Summary: | CORP headers mishandled inside Worker | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jozef Chutka <jozefchutka> |
| Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | annevk, beidson, cdumez, webkit-bug-importer, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | Mac (Apple Silicon) | ||
| OS: | Unspecified | ||
|
Description
Jozef Chutka
2023-09-19 06:10:32 PDT
The workaround is to replace:
```
import { foo } from "https://domain-b/module.js"
```
by fetch + import function
```
const response = await fetch("https://domain-b/module.js");
const blob = await response.blob();
const { pipeline } = await import(URL.createObjectURL(blob));
```
Considering fetch() is allowed to load a url while static import declaration is blocked, it seems to me the bug in safari has something to do with security for static import declarations.
|