Andy Tolbert created CASSANDRA-20635:
----------------------------------------

             Summary: Formulas in UCS documentation don't load on deployed 
website because MathJax cannot be loaded due to Content Security Policy
                 Key: CASSANDRA-20635
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20635
             Project: Apache Cassandra
          Issue Type: Bug
          Components: Documentation/Website
            Reporter: Andy Tolbert
         Attachments: image-2025-05-07-14-04-34-005.png

Noticed that on the deployed [UCS documentation page 
|https://cassandra.apache.org/doc/5.0/cassandra/managing/operating/compaction/ucs.html]
 that formulas don't render properly.

!image-2025-05-07-14-04-34-005.png!

This appears to be because MathJax (among other js) can't be loaded.
 
{noformat}
 [Error] Refused to load 
https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js because it 
does not appear in the script-src directive of the Content Security Policy.
[Error] Refused to load 
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-MML-AM_HTMLorMML
 because it does not appear in the script-src directive of the Content Security 
Policy.
[Error] Refused to load 
https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js because it 
does not appear in the script-src directive of the Content Security Policy.
[Error] TypeError: null is not an object (evaluating 't.getBoundingClientRect')
r (site.js:6:862)
n (site.js:6:487)
(anonymous function) (site.js:6:1900)
Global Code (site.js:6:2272)
[Error] Refused to load 
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-MML-AM_HTMLorMML
 because it does not appear in the script-src directive of the Content Security 
Policy.{noformat}
 

When generating the site locally the formulas render properly.  Likely that we 
need self host MathJax and jquery or update the policy.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to