-
Notifications
You must be signed in to change notification settings - Fork 435
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
[Safari] GM_xmlhttpRequest does not use browser cookie? #786
Comments
4.10.6103 should fix setting headers of GM_xmlhttpRequest |
Firefox has similar issue. Hope it can be fixed in the next release. |
+1 |
@derjanb I can still replicate the issue with the current beta (4.10.6112) under Firefox. If needed, I'll try to create an example test case (I'll have to find a test website that'll properly work with cookies), but the issue is that cookies aren't sent for websites that need them (in my case, Instagram), with GM_xmlhttpRequest. |
@qsniyg This issue is special to Safari (which has no version 4.10.6112). So please create a new issue. A example test case would be great. Thanks. |
Not fixed? |
@derjanb As I understand it's because Safari APIs and there is no workaround? I don't have Mac, but one user reported that cookies are not sent on:
|
The issue still exists.
|
Safari on Mac does not use browser's cookie when calling GM_xmlhttpRequest (see Tampermonkey/tampermonkey#786). When user is not logged in, Nanyangpt will redirect to non-https log-in page, which causes a cross origin request and user will get a warnning. For now, exclude tampermonkey on Mac to make the request. If other browsers are affected, exclude them also.
Unfortunately this can't be fixed using Safari's App technology. However, there now is a new extension that uses Web Extension technology. You can upgrade your extension by getting the Tampermonkey bundle. |
Specifications
I have observed that tampermonkey has a separated process (Tampermonkey (Safari)) for sending out requests. User agents differ from Safari as well. This is the reason why requests do not embed browser cookie anymore like before.
I tried setting headers for
GM_xmlhttpRequest
to include cookie however request cannot even be sent. Not sure whether this is fixable or there is some workaround.The text was updated successfully, but these errors were encountered: