When trying to download files from my Servoy application, Chrome initially blocks the download with a warning:
This page is trying to load scripts from unauthenticated sources.
Using the Chrome Developer tools, the console reports:
- Code: Select all
servoy.js?w:lm=1486385934:1637
Mixed Content: The page at 'https://xyz.com/servoy-webclient/?x=HB8ByVXFPW1elzpQWRDr4A'
was loaded over HTTPS, but requested an insecure resource 'http://xyz.com/servoy-webclient/resources/servoy/resources'.
This request has been blocked; the content must be served over HTTPS.
Then examine the source code:
- Code: Select all
function showurl(url, timeout, onRootFrame, useIFrame, pageExpiredRedirect)
{
var mywindow = window;
if (onRootFrame || useIFrame) {
mywindow = getRootServoyFrame();
}
if (useIFrame) {
var ifrm = document.getElementById('srv_downloadframe');
if (ifrm) {
ifrm.src = url;
} else {
ifrm = document.createElement("IFRAME");
ifrm.setAttribute("src", url);
ifrm.setAttribute('id', 'srv_downloadframe');
ifrm.setAttribute('name', 'srv_downloadframe');
ifrm.style.width = 0 + "px";
ifrm.style.height = 0 + "px";
mywindow.document.body.appendChild(ifrm);
The last line is the offending line. Which means nothing to me. I think this is Servoy generated code.
url argument passed is HTTP instead of HTTPS. That is, 'http://xyz.com/servoy-webclient/resources/servoy/resources'
Anybody have any ideas on how to fix this warning, so that all the content is over HTTPS?
Thanks,
~Paul