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
Using the npm package in a web project with unsafe-eval disabled at CSP level errors with:
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' cdn.xxxxx.com".
at new Function (<anonymous>)
at tearOffGetter (internalAdmin.js:97912)
at tearOff (internalAdmin.js:97914)
at installTearOff (internalAdmin.js:97926)
at installInstanceTearOff (internalAdmin.js:97928)
at internalAdmin.js:97936
at installTearOffs (internalAdmin.js:107733)
at dartProgram (internalAdmin.js:107792)
at Object.<anonymous> (internalAdmin.js:108537)
at Object../node_modules/gltf-validator/gltf_validator.dart.js (internalAdmin.js:108538)
The dart compiler comes with a flag disabling dynamic code generation with the specific purpose of satisfying CSP restrictions:
Using the npm package in a web project with unsafe-eval disabled at CSP level errors with:
The dart compiler comes with a flag disabling dynamic code generation with the specific purpose of satisfying CSP restrictions:
https://dart.dev/tools/dart2js#:~:text=generated%20from%20packages.-,%2D%2Dcsp,-Disables%20dynamic%20generation
Could this flag be added to the build process that publishes the npm package?
The text was updated successfully, but these errors were encountered: