'web_accessible_resources' manifest key is ignored for injected scripts/CSS

73 views
Skip to first unread message

Savr G

unread,
Oct 26, 2021, 11:43:23 AM10/26/21
to Chromium Extensions
Recently my extension stopped working (although it was working before). After some research I found out that now injected scripts/CSS fail to load - I get net::ERR_BLOCKED_BY_CLIENT message in console. These necessary resources are injected by my content script via document.createElement.
Below is "web_accessible_resources" key in my manifest:
  "web_accessible_resources": [
    {
      "resources": [
        "harviewer/*",
        "connection.js"
      ],
      "matches": [
        "<all_urls>"
      ]
    }
  ],

AFAIU it is correct, otherwise I'd get another error message.
I have no adblock-like extensions installed. Also I've tried to clear browser cache, with no luck.
So is it a bug or a feature? The current Chrome Dev docs don't contain any mention of such behaviour.

Reply all
Reply to author
Forward
0 new messages