SuzanneSoy / scribble-math

Integration of MathJax, KaTeX and Asymptote with scribble, to typeset math in Racket documentation
http://docs.racket-lang.org/scribble-math/
Other
17 stars 4 forks source link

eliminate inline javascript for mathjax loading #14

Open jbclements opened 3 months ago

jbclements commented 3 months ago

My web page is configured with a Content Security Policy that forbids inline JS, and indeed, I think inline javascript does represent a fairly massive attack target. In order to eliminate it, it looks like we can just call js-addition with a URL, rather than a byte string.

TBH, I can't see why the original code was the way it was, unless we overlooked the possibility of calling js-addition with a URL. Let me know if I missed something obvious!