-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content-Security-Policy prevents MathJax from loading #4
Comments
It looks like I'm going to have to change the way MathJax.Ajax does loading to make sure all of the javascript ends up in the content_script context instead of the page context. |
Nope, changing MathJax.Ajax won't fix things it looks like. (Unless I can circumvent the CSP entirely in the content_script environment by setting it myself.) By simply loading MathJax from the extension library version with |
Even better idea! Use |
Unfortunately, sites that set Content-Security-Policy in their headers prevent MathJax from loading. This is unfortunate, but I'm not sure what to do about it since (AFAIK) MathJax relies on being able to put scripts in the DOM and having them be loaded by the browser.
At the very least, we should make sure that MathJax.Hub is defined in retexChecker.js before trying to Queue the typesetting to avoid throwing a million exceptions.
The text was updated successfully, but these errors were encountered: