vm-browserify icon indicating copy to clipboard operation
vm-browserify copied to clipboard

Content Security Policy: The page’s settings blocked the loading of a resource at eval (“script-src”).

Open marafee1243 opened this issue 6 years ago • 3 comments

Error thrown in Firefox 65.0.1 but not chrome.

https://github.com/browserify/vm-browserify/blob/master/index.js#L110

marafee1243 avatar Mar 01 '19 02:03 marafee1243

Still happens on Firefox 69.0.1

dajohi avatar Oct 14 '19 20:10 dajohi

you probably need to set some content security policy header to allow evals. i don't think this package can control that in any way.

goto-bus-stop avatar Oct 15 '19 10:10 goto-bus-stop

Not the package's fault, but probably should include some warning that this is expected.

ming-codes avatar Mar 12 '22 04:03 ming-codes