title: Cross Domain Web Worker?
body: <p>I have <a href="https://domain1.com" rel="nofollow noreferrer">https://domain1.com</a> (domain1) and <a href="https://domain2.com" rel="nofollow noreferrer">https://domain2.com</a> (domain2).</p>
  <p>Domain2 serves a page containing javascript with this header:</p>
  <pre><code>&quot;Access-Control-Allow-Origin: *&quot;
  </code></pre>
  <p>Domain1 runs some javascript code that invokes:</p>
  <pre><code>new Worker(&quot;//domain2.com/script.js&quot;)
  </code></pre>
  <p>Browsers throw security exceptions.</p>
  <p>Since starting writing this question, I have got around this problem by ajaxing the script, blobbing it and running it from that, but am I missing something in the original idea?</p>