1

我正在开发一个 chrome 扩展,它具有以下文件,例如:

test.html
manifest.json

假设扩展程序具有 id aaaaaaaaaaaaa

如果我导航到以下 URL chrome-extension://aaaaaaaaaaaaa/test.html

我可以成功查看popup.html加载的文件。

但是,当我尝试在隐身模式下访问相同的 URL 时,我收到一条 Chrome 错误消息:

aaaaaaaaaaaaa is blocked

Requests to the server have been blocked by an extension.
Try disabling your extensions.
ERR_BLOCKED_BY_CLIENT

我已启用Allow in incognito扩展程序设置中的复选框。这是浏览器的预期行为吗?有没有办法让文件以隐身模式加载?

顺便说一句,我的manifest.json文件有

...
"web_accessible_resources": [
    "test.html"
],
...
4

0 回答 0