title: web worker Failed to execute 'open' on 'XMLHttpRequest': Invalid URL
body: <p>I have a web worker, refer below.</p>
  
  <pre><code>var worker_script = function(){
          self.onmessage = function(e){
              var xhttp = new XMLHttpRequest();
              xhttp.onreadystatechange = function() {
                  if (this.readyState == 4 &amp;&amp; this.status == 200) {
                   postMessage(xhttp.responseText);
                   counter = 0;
                  }
              };
              xhttp.open("GET",e.data, true);
              xhttp.send();
  
          }   
      }
  
  var search_worker = new Worker(URL.createObjectURL(new Blob(["("+worker_script.toString()+")()"], {type: 'text/javascript'})));
  // post message to worker
  search_worker.postMessage("https://www.connectnigeria.com/ajax/getkeywords?keyword=");
  search_worker.onmessage = function(e){
  console.log(e);
  };
  </code></pre>
  
  <p>this is working in my local server but in my production server, it gives me this error</p>
  
  <blockquote>
    <p>Uncaught DOMException: Failed to execute 'open' on 'XMLHttpRequest':
    Invalid URL at self.onmessage
    (blob:<a href="https://mywebsitesample.com/d17ebd88-7452-4282-9313-26d697fea457:1:198" rel="nofollow noreferrer">https://mywebsitesample.com/d17ebd88-7452-4282-9313-26d697fea457:1:198</a>)</p>
  </blockquote>
  
  <p>what could be the problem? any ideas?</p>