Search code examples
httpsmathjax

Can Mathjax be used with https?


Can Mathjax be used with https?

This script renders latex if the page is called http:..., but not https:...

    <script type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&#038;ver=3.5.1'>
    </script> 

Solution

  • Yes, see http://docs.mathjax.org/en/latest/start.html#mathjax-cdn. Use the script

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