Created: 2011-07-07 18:39
Updated: 2016-05-06 20:18

Cookie Monster

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();;

// 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

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more