We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This package depends on ajv which internally uses new Function(..., sourcecode), equivalent to eval(). This is documented in their readme.
ajv
new Function(..., sourcecode)
eval()
The result of this is that any package bundling conf (or electron-store) infringes secure CSPs. That is, a CSP without an 'unsafe-eval' directive.
conf
electron-store
'unsafe-eval'
Ideally, a package shouldn't prohibit use of a strict CSP.
The text was updated successfully, but these errors were encountered:
A workaround can be found in this PR leather-io/desktop#299
If you don't need to use the schema validation functionality, omit ajv, and create an alias to a stub.
plugins: [ new webpack.IgnorePlugin(/ajv/, /^conf$/), ]
Sorry, something went wrong.
No branches or pull requests
This package depends on
ajv
which internally usesnew Function(..., sourcecode)
, equivalent toeval()
. This is documented in their readme.The result of this is that any package bundling
conf
(orelectron-store
) infringes secure CSPs. That is, a CSP without an'unsafe-eval'
directive.Ideally, a package shouldn't prohibit use of a strict CSP.
The text was updated successfully, but these errors were encountered: