How can I get around “mixed active content” highcharts exporting error?

徘徊边缘 提交于 2019-12-11 01:06:54

问题


It appears you cannot use Exporting with https, because of "mixed active content" error.

Blocked loading mixed active content "http://export.highcharts.com/"

You can see this problem by viewing one of the Highmaps demos:

This (http) works: http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/maps/demo/distribution/

This (https) doesn't: https://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/maps/demo/distribution/

Is there any way to allow Exporting to work with an https page?


回答1:


The exporting URL defaults to 'http://export.highcharts.com'. You can manually set it to use https for the same address.

In code (updated JSFiddle):

exporting: {
    url: 'https://export.highcharts.com'
}


来源:https://stackoverflow.com/questions/35538500/how-can-i-get-around-mixed-active-content-highcharts-exporting-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!