m1k0l4ji3 Posted May 10 Report Posted May 10 Hi, I'm developing a Chrome extension related to the Steam and have encountered a blocking issue with the Content Security Policy. The error message is: Quote 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: default-src 'self'. I'd like to know if there's any planned support or existing workarounds for environments with strict security policies, such as those in newer Chrome extension versions. Quote
m1k0l4ji3 Posted May 12 Author Report Posted May 12 (edited) The steam-session uses the protobufjs/codegen module, which internally evaluates strings as JavaScript code. This causes errors in browser extensions because of strict security settings. Here's the full error trace: Some related issues i found on github: https://github.com/protobufjs/protobuf.js/issues/593 https://github.com/protobufjs/protobuf.js/issues/1483 Edited May 12 by m1k0l4ji3 Quote
Dr. McKay Posted May 13 Report Posted May 13 steam-session is a Node.js module, not a browser module. m1k0l4ji3 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.