且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

拒绝连接到[url],因为它违反了以下内容安全策略指令

更新时间:2022-10-19 18:56:33

Extensions should bypass a page's Content Security Policy when executing XMLHTTPRequest from a content script. They currently aren't, which is a bug. I've filed https://bugs.webkit.org/show_bug.cgi?id=104480 to take a look at fixing it.

Are you executing XHR from your extension's content script, or are you executing it in the background page? The latter should work right now.