Tuesday, 6 August 2013

loading http javascript in https javascript

loading http javascript in https javascript

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.
https: //mydomain/index.html
< script src="http://unsecure/custom.js" type="text/javascript"/>
...
When i tried 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: [blocked] The page at https:
//mydomain/ ran insecure content from http: //unsecure/custom.js.
Is there any way to load this unsecure javascript or i need to publish
this unsecure javascript through secure way and then access it(i can
change this included java script protocal from http to https)?

No comments:

Post a Comment