Skip to content

Commit ef8c494

Browse files
committed
Fix map tiles blocked by COEP: use credentialless instead of require-corp
Cross-Origin-Embedder-Policy: require-corp blocks OpenStreetMap tiles and Leaflet marker icons (from unpkg.com) because they don't send CORP headers. Switching to credentialless still enables SharedArrayBuffer for ONNX WASM but allows cross-origin resources that don't use credentials.
1 parent 86397e0 commit ef8c494

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const nextConfig: NextConfig = {
4343
source: "/(.*)",
4444
headers: [
4545
{ key: "Cross-Origin-Opener-Policy", value: "same-origin" },
46-
{ key: "Cross-Origin-Embedder-Policy", value: "require-corp" },
46+
{ key: "Cross-Origin-Embedder-Policy", value: "credentialless" },
4747
],
4848
},
4949
];

0 commit comments

Comments
 (0)