Cross Domain Web Workers
browser, cross-domain, javascript, web-worker, xdomainrequest
Solution
I know it's a little late now, but is this what you're looking for?
"Creates a url for the specified blob that can be passed to methods that expect a url. When done with the returned url, call revokeObjectURL() to free the resources associated with the created url."
This method easily allows you to create a Worker using a local script instead of a remote url.
Problem
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?