Open slongzhang opened 1 year ago
@slongzhang were you able to figure this out?
This repository is for samples, not for problems with the API.
As for the problem, you can't use webRequest in a normal ManifestV3 extension to modify the requests. This is by design and you need to use chrome.declarativeNetRequest, which unfortunately is too dumb for your use case. So, your only solutions are 1) ExtensionInstallForcelist or 2) running chrome --allowlisted-extension-id=YOUR_EXT_ID
. Both enable the use of webRequestBlocking
permission with 'blocking'
in extraInfo for addListener, which is required to modify requests.