Redirect XMLHttpRequest from firefox add-on
I am having trouble redirecting XMLHttpRequest from firefox add-
on. Main problem is that nsIURI is immutable in a nsiChannel, as a
result can't change it to another uri. I have tried to redirect
using nsiChannelEventSink, but haven't found any success yet.
In nutshell, whenever an HTTP request is made, I'd like to intercept
this and based on a condition i want to redirect the request to
another ip address/port.
Any comments or suggestions will be a great help.