Opened 6 years ago

Last modified 5 years ago

#11313 confirmed Bug

Mathjax plugin broken when ckeditor is used over https:// protocol

Reported by: Boson Au Owned by:
Priority: Normal Milestone:
Component: General Version: 4.3 Beta
Keywords: Cc:

Description

Steps:

  1. instantiate ckeditor with mathjax plugin installed using https protocol.
  2. clicking mathjax throws error in console:
Chrome:"[blocked] The page at '[site with https]' was loaded over     HTTPS, but ran insecure content from 'http://cdn.mathjax.org/mathjax/2.2-latest/MathJax.js?config=TeX-AMS_HTML': this content should also be loaded over HTTPS."

in Firefox: "[14:41:12.367] Blocked loading mixed active content "http://cdn.mathjax.org/mathjax/2.2-latest/MathJax.js?config=TeX-AMS_HTML" @ https://[site]"

os:pc/mac

browser:chrome

according to the Mathjax website: http://www.mathjax.org/resources/faqs/#problem-https

their CDN does not offer https support and instead, asks users to use https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML as an alternative address. It'd be great if ckeditor can test the protocol of the browser accessing the script and change the path accordingly. even better would be leaving plugin.js in the mathjax plugin folder as it was in version 4.3 beta.

Change History (3)

comment:1 Changed 6 years ago by Jakub Ś

Status: newconfirmed
Summary: Mathjax plugin broken when ckeditor is used over https:// protocol + chromeMathjax plugin broken when ckeditor is used over https:// protocol
Version: 4.3.14.3 Beta

This isn't only Chrome. Firefox blocks mathjax as well while IE asks if it should display content or not (IE default setting).

Problem can be reproduced from CKEditor 4.3 beta.

I think it would be best if we could detect protocol (http://stackoverflow.com/questions/4723213/detect-http-or-https-then-force-https-in-javascript) and called correct URL.

Version 0, edited 6 years ago by Jakub Ś (next)

comment:2 in reply to:  description Changed 5 years ago by Jonathan Paul Costello

It looks like mathjax's cdn works with https now. https://cdn.mathjax.org/mathjax/2.2-latest/MathJax.js?config=TeX-AMS_HTML works for me.

comment:3 Changed 5 years ago by Jakub Ś

Thanks for letting us know.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy