Recently, I attempted to experiment with the physi.js library. I diligently followed all the provided instructions:
https://github.com/chandlerprall/Physijs/wiki/Basic-Setup
To my dismay, an error message popped up:
Uncaught SecurityError: Failed to construct 'Worker': Script at 'file://172.16.159.200/js/physijs_worker.js' cannot be accessed from origin 'null'.
Delving deeper into this issue, I identified a potential culprit within the line of code:
this._worker = new Worker( Physijs.scripts.worker || 'physijs_worker.js' );
How did this problem arise? The browser in use is Google Chrome, and upon inspection, the file "physijs_worker.js" seems to be located correctly.