HighStock Charts not Working over SSL ie https

自作多情 提交于 2019-12-23 07:57:35

问题


I have a site which is a secure site means, it is accessed using https:// protocol. This site has highchart on it.

The highchart was working perfectly when the protocol was http://. But after installing secure certificate it failed to load in any browser.

I had imported the HighStock chart js as shown below.

Then I thought of changing the protocol for fetching the js from http:// to https:// as shown below

After this the chart started to render properly in internet explorer.

But the charts are still not loading in google Chrome,Firefox and Safari etc.

Can Anyone tell me the proper way to render/display HighStock chart over a site that is accessed using https:// protocol.

also the export and print functionality should also work.

This is a very urgent requirement, so any sort of help would be appreciated.

Thanks in advance.

Regards

Soham Patel


回答1:


I had the same problem and I solved it by removing the protocol (http:) by doing this:

<script src="//www.myserver.com/js/HighStock/js/highstock.js" type="text/javascript"></script>



回答2:


Without any code to look at, it's hard to tell, but one option is that you are loading some things with http and others with https. Make sure that everything in the page is using https e.g. All loaded scripts, etc.



来源:https://stackoverflow.com/questions/15540372/highstock-charts-not-working-over-ssl-ie-https

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