-
Notifications
You must be signed in to change notification settings - Fork 44
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
Package doesn't work with Content Security Policy unsafe-eval #45
Comments
Hi, any update on this? Can we merge the PR? |
I believe so. I don't remember. It's been so long :) |
(I've been away from Github for a while for medical reasons, I'm not really back per se, but today's a good day.) So the actual eval is safe, but you have rules that improperly flag it as unsafe? Am I understanding that correctly? I can't say I'm keen on "delete it and move on" as a solution... Edit: Ah, I see, so this is in fact for bundled versions running inside browsers... Let's see if we can find a better solution than just deleting a feature that's quite useful server-side. |
accordingly to CSP CSP doesn't care if you just Please consider using |
@iarna I can file a clean PR if needed, just let me know, thanks! edit although I really don't understand this comment: /* eval require not available in transpiled bundle */ I am not sure what you mean but transpilers make that |
@iarna I don't see much activity in this repo ... are you OK for a fork? Happy to push back in here changes I might make to this, but I ma focusing mostly on web compat so any |
+1 on removal of
Edit: I found https://github.com/squirrelchat/smol-toml which looks to be a good alternative to this module. |
NetlifyCMS uses this package as a dependency. This package includes an
eval
function that is not permitted with CSP 'unsafe-eval' which prevents NetlifyCMS from working in secure environments.decaporg/decap-cms#4367 (comment)
Please, let me know if you're open to removing the eval - I can submit a PR.
The text was updated successfully, but these errors were encountered: