[
https://issues.apache.org/jira/browse/TRAINING-43?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18016355#comment-18016355
]
Christofer Dutz commented on TRAINING-43:
-----------------------------------------
It seems that we were loading the highlight js from a remote sever and this was
blocked.
I could find this:
index_en.html:1 Refused to load the script
'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.3/highlight.min.js'
because it violates the following Content Security Policy directive:
"script-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval'
https://www.apachecon.com/ https://www.communityovercode.org/
https://*.apache.org/ https://apache.org/ https://*.scarf.sh/". Note that
'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
index_en.html:707 highlight.js not detected!
(anonymous) @ index_en.html:707
(anonymous) @ index_en.html:707
index_en.html:1135 Uncaught ReferenceError: hljs is not defined
at index_en.html:1135:1
(anonymous) @ index_en.html:1135
> Not actually using highlight.js?
> --------------------------------
>
> Key: TRAINING-43
> URL: https://issues.apache.org/jira/browse/TRAINING-43
> Project: Apache Training
> Issue Type: Bug
> Reporter: Rich Bowen
> Priority: Major
>
> The Training slide deck -
> [https://training.apache.org/presentations/training/presentation/index_en.html]
> - contains a slide titled "Generating content" with a code sample. It says
> "Uses highlight.js", however, the code is not highlighted in any way that I
> would expect if it was using highlight.js
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)