Strip cookies from XMLHttpRequests in Mozilla Firefox, using JavaScript and XUL.
Well, the Cookie Monster allows you to strip any cookies from XMLHttpRequests in Mozilla Firefox. What else did you expect?
Include the cookiemonster.js file and then use it as follows in your own code:
var request = new XMLHttpRequest();
request.open(...);
// other code of yours
new CookieMonster(request); // cookie monster will make sure no cookies will survive!
// other code of yours
request.send(); // actually send the XMLHttpRequest
My blog article Cookie Monster for XMLHttpRequest works you through the usage and implementation details.
The code is licensed to you under version 2 of the GNU General Public License.
Copyright 2006-2011 Michael G. Noll http://www.michael-noll.com/