projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.45k stars 1.16k forks source link

Does storm-react-diagrams support nonce attribute for CSP? #1016

Closed Rachel-Yeah-Lee closed 6 months ago

Rachel-Yeah-Lee commented 9 months ago

Hi, thanks for sharing the great project!

I am setting Content Security Policy Header as "style 'self' 'nonce-...'", I would like to know if storm-react-diagrams supported adding nonce attribute?

the following is the error that violate the CSP, which can be solve by adding the nonce. But I have no idea where can I add the nonce.

1694484609356

look for your apply, thanks!