EN
JavaScript - Google Chrome can't load web worker
1
answers
0
points
Hello, I'm working with web workers in JavaScript and I have a problem with loading them in Google Chrome.
Can you help me with this?
I have the following error:
Uncaught DOMException: Failed to construct 'Worker': Script at 'file:///C://path/worker.js' cannot be accessed from origin 'null'.
1 answer
0
points
Google Chrome does not allow the use of web workers while running JavaScript code from local files.
You need to run the website on the localhost.
See also
0 comments
Add comment