greasemonkey/greasemonkey — Issue #1521: GM_xmlhttpRequest is not sending cookies back to origin
Author: Enkidu70
Created: 2012-02-21 11:16:47+00:00
State: open

In GM scripts designed for sites using cookies (e.g. for authentification purposes) GM_xmlhttpRequest does not work properly because it does not send back the given cookies.

Using GM_xmlhttpRequest no cookies are included. Using XMLHttpRequest all cookies are preserved.

This is esp. a problem if the sites protects its cookies by "Set-Cookie: ...; HttpOnly" so that you can not attach it manually.

Solution:
GM_xmlhttpRequest just has to preserve given cookies (like XMLHttpRequest does).