How to requesting javascript file of an HTTP server from HTTPS server -
well, have application runs on https , there requests load javascript files server runs on http (there no https option these javascript files), and, obviously, i'm getting error:
mixed content: page @ 'https://myapplication.url.com/ loaded on https, requested insecure script 'http://another.application/file.js'. request has been blocked; content must served on https.
a solution found @ was: instead of request http://another.application/file.js, suggest removing http:, leaving //another.application/file.js
. doesn't work. tries request https , there no https option file.js.
i've read related topics here:
request json resource http page https server
downloading files http server in python
http request originated http server
but, unfortunately, none of them gave me clue. has got error , how 1 solve that?
i don't know if matters, i'm using tomcat6, java7 , problem occurs when try include file in index.html:
that's code use:
script type="text/javascript" src="http://another.application/file.js"
there's no client side solution know of.
you can set proxy on server file can requested through server (https). maybe it's easier copy file server , serve there (if it's static).
or if use cdn, can set include files other (http-only) server, such cdn serves them via https.
Comments
Post a Comment