emscripten-core / emscripten-core/emscripten
Access to script at 'file:///F:/M/JSPlay.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
there is a error about CORS, i use `-s SINGLE_FILE=1` to make the C project ,and only generate the Decoder.js , and load it in the DecodeWorker.js, then new DecodeWorker() in JSPlay.js , last , in test.html , i load the JSPlay.js , there is a CORS policy .
i have confirm that new webworker in html is ok , and load the Decoder.js in html is also ok ,so my code architecture is html load JSPlay.js , and JSPlay.js new the webworker that load the Decoder.js , why is a CORS policy ?
Contributor guide
Assessment
This issue has not been assessed yet.