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.
How to add declarativeNetRequest rule dynamically for certain (select)tabs opened from a particular site
I have a product that opens 3rd party customer sites using window.open in an additional window.(For doing some WSIWYG type editing on the site). I need to remove a few headers (eg Cross-Origin-Opener-Policy) for tabs opened with our site in order for site to open and work like I need it to.
How to add declarativeNetRequest rule dynamically for certain (controlled)tabs opened from a particular site
I have a product that opens 3rd party customer sites using window.open in an additional window.(For doing some WSIWYG type editing on the site). I need to remove a few headers (eg Cross-Origin-Opener-Policy) from the clients sites in order for it to open and work like I need it to.