-
Notifications
You must be signed in to change notification settings - Fork 658
Closed
Labels
Description
What is the problem?
After running the GM_xmlhttpRequest, the cookie is overwritten when the server returns the Set-Cookie header.
How to reproduce it?
This bug can only be reproduce through the Chrome
- User logs in to
hello.example.com hello.example.comreturnsSet-Cookie: PHPSESSID=20dxxx; path=/; domain=.example.com-
// Getting data from the difference GM_xmlhttpRequest({ url: 'https://world.example.com', anonymous: true, onload: () => console.log('do something cool') })
world.example.comreturnsSet-Cookie: PHPSESSID=5faxxx; path=/; domain=.example.comPHPSESSIDfor.example.comis now5faxxx
What is the expected result?
Completely ignoring Set-Cookie header
What is the actual result?
Set-Cookie overwrites cookies
Environment
- Browser: Chrome
- Browser version: 78.0.3904.108
- Violentmonkey version: 2.12.4
- OS: Windows 10