DevTools 无法加载源地图:无法加载 chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/sourceMap/chrome/scripts/iframe_form_check.map 的内容:系统错误:net::ERR_BLOCKED_BY_CLIENT
我期待一个无错误的控制台,我想在浏览器中运行 js...
默认情况下,chrome 扩展程序的资源无法通过网络访问。如果调试 chrome-extension 源映射,您应该在 manifest.json 中添加清单声明。使用 web_accessible_resources 清单属性来声明公开哪些资源。
{
"name": "hello world",
"description": "",
"version": "1.0",
"manifest_version": 3,
"web_accessible_resources": [
{
"resources": [ "sourceMap/*" ],
"matches": [ "<all_urls>" ]
}
]
}