Page loaded over HTTPS but requested an insecure XMLHttpRequest endpoint

后端 未结 5 1844
予麋鹿
予麋鹿 2020-12-03 06:40

I have a page with some D3 javascript on. This page sits within a HTTPS website, but the certificate is self-signed.

When I load the page, my D3 visualisations do no

相关标签:
5条回答
  • 2020-12-03 07:18

    I had the same issue for my angular project, then I make it work in Chrome by changing the setting. Go to Chrome setting -->site setting -->Insecure content --> click add button of allow, then add your domain name [*.]XXXX.biz

    Now problem will be solved.

    0 讨论(0)
  • 2020-12-03 07:28

    I had the same problem but from IIS in visual studio, I went to project properties -> Web -> and project url change http to https

    0 讨论(0)
  • 2020-12-03 07:40

    this is easy,
    if you use .htaccess , check http: for https: ,
    if you use codeigniter, check config : url_base -> you url http change for https.....
    I solved my problem.

    0 讨论(0)
  • 2020-12-03 07:43

    I solved the problem adding a slash at the end of the requesting url

    This way: '/data/180/' instead of: '/data/180'

    0 讨论(0)
  • 2020-12-03 07:44

    What I can do to fix this (other than installing a real SSL certificate).

    You can't.

    On an https webpage you can only make AJAX request to https webpage (With a certificate trusted by the browser, if you use a self-signed one, it will not work for your visitors)

    0 讨论(0)
提交回复
热议问题