I use a jQuery plugin named Redactor, which can send ajax requests (link to the code). My site has an ajax authentication using header. So, I need to set header of all ajax requests, sending via redactor.
How can I modify just this request of the website without modifying the source file?
P.S. I don't need to modify XmlHttpRequest
globally. I want to modify it just for this chunk of code.