Open MglMX opened 3 years ago
What library are you using - survey-knockout, survey-angular, survey-jquery, survey-vue or survey-react?
I am using survey-react.
I hit a CSP issue using Knockout. It seems Knockout v3 hasn't been updated since 2019 and there is now Knockout v4 which supports CSP. Does this library support Knockout v4? Or does this library have any other issues with CSP we should know about?
Are you requesting a feature, reporting a bug or asking a question?
Requesting a feature
What is the current behavior?
The library needs the CSP for
style-src
to beunsafe-inline
.The styles will not be applied if the CSP for
style-src
is set tononce
which prevents style injection.What is the expected behavior?
It should be possible to provide a nonce to the style tag created by the StylesManager.
How would you reproduce the current behavior (if this is a bug)?
Inject a CSP for testing purpose. Add to HTML Head:
<meta http-equiv="Content-Security-Policy" content="style-src 'self' 'nonce-MTIz';">
Specify your