Chrome extensions Google plug-in uses eval new Function in the background page

Just add this permission to the manifest.json file"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';" 
}

Guess you like

Origin blog.csdn.net/qq_42048638/article/details/129079052