When trying to create a worker
var worker = new Worker('teste.js');
I get the following message:
Uncaught SecurityError: Failed to construct 'Worker': Script at 'file: /// C: /...../js/teste.js' can not be accessed from source 'null'.
Of course with this answer in SOen, link , it is not possible to load the local file. Is there any alternative way to do this?
Note: I use Google Chrome and Firefox