title: Chrome extension - loading file from localhost to content_scripts
body: <p>I'm developing Chrome Extension and I need to load a javascript file to content scripts, but that file is being served via webpack-dev-server. So it's approachable only on localhost.</p>
  
  <p>I tried to change my manifest.json:</p>
  
  <pre><code>"content_scripts": [
      {
        "matches": [
          "http://*/*",
          "https://*/*"
        ],
        "js": [
          "http://localhost:3000/scripts/content_bundle.js"
        ],
        "run_at": "document_end",
        "all_frames": false
      }
  </code></pre>
  
  <p>But then I got an error in Chrome Extensions window:</p>
  
  <p><a href="https://i.stack.imgur.com/xRxqx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xRxqx.png" alt="enter image description here"></a></p>