-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BPMN viewer conflicts with strict Content-Security-Policy (CSP) style-src directive #1625
Comments
We'd need to decide on a scope (viewer only? navigate viewer?) if we wanted to fix this. I.e. in our modeler distribution there is a larger number of that disallowed by CSP usages (search for |
Thanks @nikku. I don't think I'm best placed to figure out all the packages that might include this issue, but if I could have some help identifying them I'd be happy to create new PRs to include similar fixes. Your link to the modeler distribution shows this is present in other places, but from that I'm not sure where the fix would be applied (although if it's in the same repo I can have another look to see if there are things I might have missed). I've seen your suggestion in the PR I created and I'll get that actioned soon. |
Closed via #1645 |
🎉 Thanks all! |
Describe the Bug
Steps to Reproduce
style-src
directives in its Content Security Policy (CSP) headerExpected Behavior
Style manipulations should be performed in a way which does not break CSP rules.
More Information
See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src
The problematic parts of the BPMN code relate to uses of the
domify
helper. When used with inline styles, a strictstyle-src
directive will block the styles from taking effect. The styles should beset directly on the element's style property
, as shown in the above MDN link.Environment
Also reported via internal conversation.
The text was updated successfully, but these errors were encountered: