title: loading http javascript in https javascript
body: <p>I have a web application which has root html and this html (say index.html) loads some java script. This application is accessible through https and I want to load one java script which is exposed over http.</p>
  
  <p><code>https://mydomain/index.html</code> contains this line of code:</p>
  
  <pre><code>&lt;script src="http://unsecure/custom.js" type="text/javascript"/&gt;
  </code></pre>
  
  <p>When I try to run my application thorugh IDE everything works fine but problem happens when I bundle my application in war file and run it.
  It fails to load the included java script by saying:</p>
  
  <blockquote>
    <p>[blocked] The page at https: //mydomain/ ran insecure content from http: //unsecure/custom.js.</p>
  </blockquote>
  
  <p>Is there any way to load this unsecure javascript or do I need to publish this unsecure javascript through a secure way and then access it (can change this included java script protocol from http to https)? </p>