chrome extensions 谷歌插件 在背景页中使用 eval new Function

在manifest.json 文件中加入该权限即可 "content_security_policy": "script-src 'unsafe-eval' 'self';"

{
    
    
  "manifest_version": 2,
  "name": "拼多多/淘宝链接采集插件",
  "version": "1.0.4",
  "description": "链接采集",

  "content_security_policy": "script-src 'unsafe-eval' 'self';" 
}

猜你喜欢

转载自blog.csdn.net/qq_42048638/article/details/129079052