phoenixcw / hexo-renderer-mathjax

MathJax Renderer Plugin for Hexo
MIT License
36 stars 14 forks source link

[https] does not support https #12

Open sheng-di opened 5 years ago

sheng-di commented 5 years ago

When I deploy my blog to github pages which use https, it gives the following error:

Mixed Content: The page at 'https://www.example.com/2019/09/23/2019%E5%B9%B49%E6%9C%8823%E6%97%A5/' was loaded over HTTPS, but requested an insecure script 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'. This request has been blocked; the content must be served over HTTPS.
lzyrapx commented 4 years ago

Hi, you should edit the file node_modules/hexo-renderer-mathjax/mathjax.html change http to https. it would be work.

<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>