-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Add support for CSP nonce #384
Comments
Want to post a PR that adds a |
Re-visiting this issue today and wanted to ask for clarification. This library does not inject a " |
I didn't investigate much but I thought that the issue is caused by the setGlobalCursorStyle function. |
Ah, I believe you're right. It's been a while since I wrote that code and I had overlooked it because I was thinking about the panels/views themselves. |
The simplest fix for my specific case would be the addition of the following just before the linked setGlobalCursorStyle line but it will be a very bundler-specific solution: I guess we either need a new |
I can't add anything like that to this project :) Would need to think of a way for people to configure (opt in to) this functionality. |
I didn't intend to close this issue when leaving my previous comment. (Sorry!) |
Check out #386. Would this suffice for your use-case? To use it, you'd need to do something like this:
|
I can confirm that the change fixes my use-case. Thanks! |
Published in version 2.1.0 ❤️ → ☕ givebrian.coffee |
Can you please consider adding support for a
nonce
attribute to thestyle
element that this library injects in the DOM. The custom cursor logic currently doesn't work when CSP is configured to expect a specific nonce.References:
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src
The text was updated successfully, but these errors were encountered: