Blog

Import maps: CORS for mapped module URLs, CDN pinning, and integrity attributes with cross-origin scripts

Browsers fetch module graphs with CORS—each mapped URL must allow the page origin.

1 min read
import-mapsesmcors

Scopes

Nested scopes complicate debugging—log resolved URLs in devtools when CORS fails mid-graph.

Multiple import maps are merging in newer proposals—test feature flags per browser.

SSR

Server-rendered HTML may emit different maps than client hydration—keep origins aligned.

Back to blog