Hi, I am following the General asynchronous programming concepts, and there is a simple-sync-worker.html demo. I saved the html file and js file to local machine, and tried to run it on local machine, but Firefox Developer Edition return “Security Error: simple-sync-worker.html file may not load file worker.js”. How to debug it locally, thanks!
Hi there @davyzhu.
Because of security policies around web workers, you’ll need to run the example through a web server. For mroe information, see here: https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server