didierfred/SimpleModifyHeaders

Headers are not injected into JS requests

fusion2222 opened this issue · 2 comments

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.

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."

Is it possible to do so in Firefox?