Ashn Soul
Ashn Soul

Reputation: 41

DevTools failed to load source map, ERR_BLOCKED_BY_CLIENT

DevTools failed to load source map: Could not load content for chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/sourceMap/chrome/scripts/iframe_form_check.map: System error: net::ERR_BLOCKED_BY_CLIENT

i am expecting a error free console, i wanna run js in browser...

Upvotes: 4

Views: 1310

Answers (1)

user3269713
user3269713

Reputation: 482

By default chrome extension's resources has no web accessible. If debug chrome-extension source map, You should add manifest declaration at manifest.json. Use the web_accessible_resources manifest property to declare which resources are exposed.

{
  "name": "hello world",
  "description": "",
  "version": "1.0",
  "manifest_version": 3,
  "web_accessible_resources": [
    {
        "resources": [ "sourceMap/*" ],
        "matches": [ "<all_urls>" ]
    }
  ]
}

Upvotes: 0

Related Questions