Jump to content
McKay Development

Chrome extensions support (manifest.json v3)


Recommended Posts

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.

Link to comment
Share on other sites

Posted (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:error.thumb.png.eaa80b3c4e5cb795298587764d7adfbb.png

Some related issues i found on github: 

Edited by m1k0l4ji3
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...