Hey ya'll,
I am currently looking for a way to build a chrome extension that can rewrite the response of certain network calls (like how we have it in the network tab -> override content). Is there a chrome extension that is best suited for that?
Is it possible to intercept the request with chrome.declarativeNetworkRequest and then use the redirect api to a server on a background script to return json?
i.e Browser calls get fakeSite/items -> chrome extension intercepts it and redirects the response to myBackgroundScript -> myBackgroundSCript returns mockedItem payload.
I've been reading mixed replies on google if this is possible or not, want to double check before going down this route.