I am aware that this question might be considered duplicate, but it is a new technology and I can not find a recent confirmation of my findings. I also think it potentially useful to have all the error messages in one place (feel free to add any other browsers).
trying to loads a worker script from another domain:
new Worker('http://otherdomain.co/worker.js');
I have set headers (using ModHeader Chrome Extension) to:
Access-Control-Allow-Methods:*
Access-Control-Allow-Origin:*
But in Chrome I get:
Uncaught SecurityError: Failed to construct 'Worker': Script at 'http:otherdomain.co/worker.js' cannot be accessed from origin
Safari give me:
[Error] SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent
Firefox gives me:
SecurityError: The operation is insecure.
Is it still that this is not something we can do? If so, what is considered the best practise work around?