Posted 14 September 2017, 10:13 am EST
[activereports_archive]We have the setup where HTTPS is proxied (the web site url is https but the connection to the web server is http). This causes the Mixed Content error:
jquery:1 Mixed Content: The page at ‘https://…’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://…/ActiveReports.ar10…’. This request has been blocked; the content must be served over HTTPS.
The report service is being called as http:// even thought the report service url is set as https:// in the View.
Following the suggestion in the following thread almost solves the problem in that the viewer now displays the report: http://arhelp.grapecity.com/groups/topic/using-active-reports-web-viewer-behind-a-reverse-proxy/
$.ajaxPrefilter(function (options, originalOptions, jqXHR) {
if (options.type == “GET” && options.url.startsWith(‘http://’))
options.url = options.url.replace(‘http://’, ‘https://’);
});
However images in the report still try to load via http as does clicking the print or any of the export buttons:
Loading mixed (insecure) display content “http://…;Command=DelayedResource;ImageId=…” on a secure page
Blocked loading mixed active content “http://…Command=Export&ExportType=Pdf&PrintOnOpen=True&Generation=1”
Thanks for the help[/activereports_archive]