title: CORS issue, using webworker with blob
body: <p>I'm using a webworker with a javascript blob since I want to be able to minify the project:</p>
  
  <pre><code>window.URL = window.URL || window.webkitURL;
                  var res = elements.worker.toString();
                  res = res.substr(res.indexOf("\n")+1,res.length-4-res.indexOf("\n"));
                  console.log(res)
                  var blob;
                  try {
                      blob = new Blob([res], {type: 'application/javascript'});
                  } catch (e) { // Backwards-compatibility
                      window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder;
                      blob = new BlobBuilder();
                      blob.append(res);
                      blob = blob.getBlob();
                  }
                  load.workNode = new Worker(URL.createObjectURL(blob)); 
  </code></pre>
  
  <p>In the browser i get CORS-error. Why does webworker demand CORS? I've checked carefully. The webworker is causing the CORS-error. Same error in both chrome and firefox.</p>
  
  <pre><code>XMLHttpRequest cannot load . Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
  </code></pre>
  
  <p>In the dev-environment I'm using node with browserfy. I tried to enable CORS there with the npm package 'cors';</p>
  
  <pre><code>var cors = require('cors');
  var proxy = require('./proxy');
  
  function browserSyncInit(baseDir, files, browser) {
    browser = browser === undefined ? 'default' : browser;
  
    var routes = null;
    if(baseDir === paths.src || (util.isArray(baseDir) &amp;&amp; baseDir.indexOf(paths.src) !== -1)) {
      routes = {
        '/bower_components': 'bower_components'
      };
    }
  
    browserSync.instance = browserSync.init(files, {
      startPath: '/',
      server: {
        baseDir: baseDir,
        middleware: [proxy, cors()],
        routes: routes
      },
      port: 4000,
      browser: browser
    });
  }
  </code></pre>
  
  <p>No success. What can I do?</p>