userscript.html?name=server%253Agithub.user.js&id=8a1c944e-1d66-47f8-8d2c-fb2eef8448a2:79 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' github.githubassets.com". Either the 'unsafe-inline' keyword, a hash ('sha256-m9WuhxCDjalzF2tBhg/f0YTfasIeLnFGhEK6+zp1IZw='), or a nonce ('nonce-...') is required to enable inline execution.
vite.config.js
main.js
报错文字如下:
如果说 github 做了限制,那么其他脚本应该也无法正常运行。但我只是简单的加了一个
console.log
就无法运行,感觉是不是哪里出问题了。