title: Chrome can't load web worker
body: <p>I am working on a project that uses a web worker.</p>
  
  <p>In my head section I have this code:</p>
  
  <pre><code>var worker = new Worker("worker.js");
  // More code
  </code></pre>
  
  <p>This works fine in Safari, but Chrome reports the following error:</p>
  
  <p><code>Uncaught SecurityError: Failed to create a worker: script at '(path)/worker.js' cannot be accessed from origin 'null'.</code></p>
  
  <p>Why does this work perfectly in Safari but not Chrome? How do I fix this?</p>
  
  <p>Thank you.</p>