Uh oh!
There was an error while loading. Please reload this page.
feat: add nonce attribute for loading scripts with csp policy - #554
feat: add nonce attribute for loading scripts with csp policy#554felixmosh wants to merge 1 commit into
Conversation
felixmosh
commented
Oct 8, 2025
? |
Uh oh!
There was an error while loading. Please reload this page.
tiny-ben-tran
commented
Dec 5, 2025
@felixmosh Looking back at #553, it sounds like you're hoping to load TinyMCE with a nonce and have that nonce automatically applied to every script TinyMCE creates. If that's the case, unfortunately this PR won’t achieve that. Even if that’s not the goal, this change still won’t allow you to enforce a strict CSP reliably, since TinyMCE dynamically injects additional scripts at init time (for plugins, skins, and other resources). You may want to forward this as a feature request to the TinyMCE issue tracker For reference, Tiny has a useful guide on CSP considerations here: |
felixmosh
commented
Dec 5, 2025
Usage of nonce for csp, is standard thing. |
tiny-ben-tran
commented
Dec 5, 2025
Don't you also need to add |
felixmosh
commented
Dec 5, 2025
Yeap... |
closes#553