didierfred / SimpleModifyHeaders

Extension for firefox and chrome to modify headers
172 stars 31 forks source link

Headers are not injected into JS requests #15

Closed fusion2222 closed 4 years ago

fusion2222 commented 4 years ago

Hello, I am not sure if this should be an issue or not, but sometimes, website needs to use websocket connections, or any other AJAX / fetch requests, which are invoked by Javascript. These JS invoked requests do not have injected headers by SimpleModifyHeaders plugin. Is this intended?

It would be awesome if there is some kind of option to force javascript requests to use headers too.

didierfred commented 4 years ago

Hello, It was not intended . I check documentation and unfortunately it 's not possible to modify js request to prevent deadlock , see extract of chrome documentation (https://developer.chrome.com/extensions/webRequest) : "Also synchronous XMLHttpRequests from your extension are hidden from blocking event handlers in order to prevent deadlocks."

alexolog commented 4 years ago

Is it possible to do so in Firefox?