You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'nonce-iEsD2if45rrVbpVQzGD2Cw=='".
I don't think vm2 will help websites to use safe CSP with this project, also it may harm performances. Maybe an option could specify if we want to switch between the fast generated function, or a not-generated-function if the maintainer really want to keep the generated function?
@mikolalysenko are you interested in a PR to solve that problem? I really think it's important to allow websites to use a strong CSP.
Activity
tdelmas commentedon Feb 16, 2020
Is is, with the
Functionsyntax: https://github.com/mikolalysenko/box-intersect/blob/master/lib/brute.js#L138linonetwo commentedon Feb 16, 2020
Maybe use something like patriksimek/vm2#85
tdelmas commentedon Feb 16, 2020
I don't think vm2 will help websites to use safe CSP with this project, also it may harm performances. Maybe an option could specify if we want to switch between the fast generated function, or a not-generated-function if the maintainer really want to keep the generated function?
@mikolalysenko are you interested in a PR to solve that problem? I really think it's important to allow websites to use a strong CSP.