



New browsers that follow the new spec, and send credentials to same-origin URLs by default.Browsers that followed the spec at the time, and did not send credentials to same-origin URLs by default.Old versions of browsers that, against the spec at the time, sent credentials by to same-origin URLs by default.However, that means you'll encounter three exciting varieties of browser support: However, that all changed, and now fetch() and module scripts behave the same as other CORS-based APIs. Most CORS-based APIs will send credentials (cookies etc) if the request is to the same origin, but for a while fetch() and module scripts were exceptions. Edge loads module scripts without CORS headers ( issue).

Firefox fails to load the demo page ( issue).This means cross-origin module scripts must return valid CORS headers such as Access-Control-Allow-Origin: *. Unlike regular scripts, module scripts (and their imports) are fetched with CORS. Import ' addTextToBody ( "This will not execute." )
