@jsenv/core 23.0.4 → 23.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4823,7 +4823,11 @@
4823
4823
  // browser having Error.captureStackTrace got window.fetch
4824
4824
  // and this executes only when Error.captureStackTrace exists
4825
4825
  // so no need for polyfill or whatever here
4826
- return _await$2(window.fetch(url), function (response) {
4826
+ return _await$2(window.fetch(url, {
4827
+ // by default a script tag is in "no-cors"
4828
+ // so we also fetch url with "no-cors"
4829
+ mode: "no-cors"
4830
+ }), function (response) {
4827
4831
  // we read response test before anything because once memoized fetch
4828
4832
  // gets annoying preventing you to read
4829
4833
  // body multiple times, even using response.clone()