js-org / js.org

Dedicated to JavaScript and its awesome community since 2015
https://JS.ORG
5.21k stars 3.45k forks source link

Mixed content blocked on Chrome #1660

Closed SevenOutman closed 6 years ago

SevenOutman commented 6 years ago

Hello there, Thanks for your awesome service first. I'm the user of vue-aplayer.js.org (at https://sevenoutman.github.io/vue-aplayer). The DNS works well, GitHub Pages links are redirected to my js.org subdomain, but the pages was totally blank.

I opened Chrome inspector and found a notice going

Mixed Content: The page at 'https://vue-aplayer.js.org/' was loaded over HTTPS, but requested an insecure script 'http://vue-aplayer.js.org/demo.js'. This request has been blocked; the content must be served over HTTPS.

How can I solve this?

indus commented 6 years ago

Thats the reason why your pull request is still open: https://github.com/js-org/dns.js.org/pull/1655 !!!

You have to change the URL in the script tag: https://github.com/SevenOutman/vue-aplayer/blob/119241e9fa1a0eec628b3b5d1bf47c1114dd8f61/index.html#L11 use <script type="text/javascript" src="https://aplayer.js.org/demo.js"></script> or better <script type="text/javascript" src="/demo.js"></script>

Please leave me a note in the PR when you had success so I can finally merge it.

SevenOutman commented 6 years ago

omg I haven't checked your reply on my PR yet, sorry there. I will correct the script link right now.