I'm writting a wiki-based plugin for Mantis, and my company ask me to integrate a Rich Text Editor (like tinyMCE, Ckeditor, wysisygblablabla...) so users writting articles would be able to format the content. That's fine, I've decided to use CKeditor v4.8, it is light, OpenSource based and working just fine. The matter is that, by using it in Chrome or Mozilla, the editor doesn't work. It's just stuck.
Looking into DOM elements and the console I found out that it was CSP issues like (in Chrome):
Searching for further information in the developer guide, I saw the section 5.2 :
Event Reference > System Event > EVENT CORE HEADER
So there is my question, how does the http_csp_*() api work ? What type of parameter does it need ? And if possible, tweaks that can resolve my CSP issues ?This event is triggered by the MantisBT bootstrap process just before emitting the headers. This enables plugins to emit their own headers or use API that enables tweaking values of headers emitted by core. An example, of headers that can be tweaked is Content-Security-Policy header which can be tweaked using http_csp_*() APIs.
Thanks a lot