I am developing a Chrome Manifest V3 (MV3) extension that uses the webRequestBlocking API. This API is only available for extensions enforced via the Google Admin Console, as stated in Google's documentation.
In production, the extension will be deployed and enforced via the Admin Console, so it will have access to this API. However, during development, this workflow is impractical because every time I make a change to the code, I need to:
This process slows down testing and debugging significantly.
My question is: Is there a way to test an unpacked Chrome MV3 extension that uses the webRequestBlocking API directly on the browser (e.g., in Developer Mode) without enforcing it via the Admin Console?
Key Details:
What I Have Tried:
I need a solution to test the webRequestBlocking API in Developer Mode (unpacked extension) without the need for enforcement via the Admin Console. Any official or unofficial development workflows, tools, or flags that can facilitate testing this API during extension development.
Modify your Chrome's shortcut or launcher and add the following to its command line:
--allowlisted-extension-id=abcdef
Replace abcdef with the id of your extension.
Make sure to fully exit all Chrome processes by using the Exit
command in the browser menu before running it with the new command line.