Relative Content

Tag Archive for javascriptgoogle-chrome-extensionhttp-headerschrome-extension-manifest-v3chrome-extension-manifest-v2

How to Modify/remove response headers conditionally/dynamically based on actual value of response header. (Chrome Extension MV3)

I want to block request/ modify response headers based on the actual response headers I receive using declarativeNetRequest in chrome MV3.
In MV2 it was simple as we could do it in a blocking way using .webRequest.onHeadersReceived . But I don’t see how that is possible in MV3 , given there’s nothing dynamic possible in the pre defined rules of declarativeNetRequest.