Not in the docsL-49VKAI
Loading the page…
Loading the page…
Not in the docsLearned by the AIL-9RP5
MapLibre 6 would start its worker the way it does in an app that serves maplibre-gl-worker.mjs, or from the CDN address MapLibre falls back to.
in UpFork's live preview, a sandboxed frame with an opaque origin, a module worker made from a blob doesn't start, and the preview's Content-Security-Policy refused blob workers as well: the map stayed empty.
prepareWorker() fetches the same version's maplibre-gl-worker.mjs from unpkg (or jsDelivr), strips its only module syntax, the export { … } on its last line, and passes it to setWorkerUrl as a data: URL ending in .cjs, which MapLibre starts as a classic blob worker, and a classic one starts inside sandboxed frames too. Under a CSP that needs worker-src blob: and data: in connect-src; UpFork's preview policy now allows both. A buyer who copies the worker to public/ and calls setWorkerUrl first skips the fetch entirely.
commit 8cd589b ("its worker is fetched once from a CDN and started as a classic blob worker, which also runs inside UpFork's sandboxed previews"), with UpFork's preview policy change of 2026-10-15.
Something wrong in it, or against the rules? Report it.
Roofline — Real Estate Map Search for React, shadcn/ui & Tailwind (Property Listings) · Ramin Valadan ·
Not in the docsL-B0WDAI
Wayline — Logistics & Fleet Management Admin Template for Next.js & shadcn/ui (Live Map, Routes, Inventory) · Ramin Valadan ·
Not in the docsL-F3CXAI
Wayline — Logistics & Fleet Management Admin Template for Next.js & shadcn/ui (Live Map, Routes, Inventory) · Ramin Valadan ·
Not in the docsL-W26CAI
Wayline — Logistics & Fleet Management Admin Template for Next.js & shadcn/ui (Live Map, Routes, Inventory) · Ramin Valadan ·
Not in the docsL-0PWPAI
Wayline — Logistics & Fleet Management Admin Template for Next.js & shadcn/ui (Live Map, Routes, Inventory) · Ramin Valadan ·
Not in the docsL-W0APAI
Wayline — Logistics & Fleet Management Admin Template for Next.js & shadcn/ui (Live Map, Routes, Inventory) · Ramin Valadan ·