Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GM doesn't pass cookies during script install #1359

Closed
BehoDouble opened this issue May 30, 2011 · 5 comments
Closed

GM doesn't pass cookies during script install #1359

BehoDouble opened this issue May 30, 2011 · 5 comments
Milestone

Comments

@BehoDouble
Copy link

Firefox 4.0.1
Greasemonkey 0.9.3

I am not able to fetch a script on a website where only logged users have access to scripts.
It seems that Greasemonkey does not send the Cookie HTTP Header used by the website.

@sizzlemctwizzle
Copy link
Contributor

Please change this title to something more clear like: "GM doesn't pass cookies during script install".

As for the actual topic of the issue, since Firefox handles xhr cookies automatically I don't understand how this could happen. I tested this with Tamper Data and confirmed that cookies were indeed sent with the install request. If it fails to send the cookies sometimes then this would be an Moz bug. Please install the Tamper Data extension and confirm that the cookies are not being sent to make sure that this isn't the result of a faulty server-side script.

@BehoDouble
Copy link
Author

When I click on a .user.js link,
request headers with the Tamper Data extension:

* Greasemonkey disabled **
Host=[website_url]
User-Agent=Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Accept=text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language=fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding=gzip, deflate
Accept-Charset=ISO-8859-1,utf-8;q=0.7,
;q=0.7
Keep-Alive=115
Connection=keep-alive
Referer=[referer_url]
Cookie=60gp=R152027072; tz=Europe%2FParis; 60gp_download=R3588672987; PHPSESSID=7413b1163a4ab15efbd084c9cac23165

* Greasemonkey enabled **
Host=[website_url]
User-Agent=Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Accept=text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language=fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding=gzip, deflate
Accept-Charset=ISO-8859-1,utf-8;q=0.7,
;q=0.7
Keep-Alive=115
Connection=keep-alive

@BehoDouble
Copy link
Author

Ok I found the problem:
Options --> Privacy --> Accept third-party cookies
When you don't accept third-party cookies the script install does not pass cookie.
But I wonder if it's a Greasemonkey bug, a Firefox bug or normal behaviour.

@arantius
Copy link
Collaborator

I assume this is some sort of private site that you can't share with us?

Without the specific page and script in question it's hard to be sure what's going on.

@arantius
Copy link
Collaborator

NVM, was easier to reproduce than I thought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants