You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
具体报错如下:
[GM_addElement](content.js:1 Refused to load the script 'https://g.alicdn.com/AWSC/AWSC/awsc.js' because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules' chrome-extension://ba9dd7ac-6bbe-473c-a0bf-34f42c0d1a73/". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.)
Activity
CodFrm commentedon Sep 12, 2025
运行在哪个网站上呢?
n1nja88888 commentedon Sep 12, 2025
任何网站吧,我的这个脚本匹配所有网站:
CodFrm commentedon Sep 12, 2025
这个脚本没有复现,我意思是在哪个网站上会复现,应该是和网站csp策略有关系
n1nja88888 commentedon Sep 12, 2025
我尝试了你的代码,还是会有这个问题:
是不是我的Chrome还是Script Cat插件配置错误了什么东西?
CodFrm commentedon Sep 12, 2025
复现了,感谢反馈,我看看什么问题
CodFrm commentedon Sep 12, 2025
感谢反馈,在最新的分支中已经修复:https://github.com/scriptscat/scriptcat/actions/runs/17641060731
应该是1.1.1版本使用的 chrome.scripting.RegisteredContentScript 注入的content脚本,
chrome.userScripts.configureWorld的csp策略无法应用导致的🐛 修复脚本注入CSP问题 #739 #728