Tampermonkey / tampermonkey

Tampermonkey is the most popular userscript manager, with over 10 million users. It's available for Chrome, Microsoft Edge, Safari, Opera Next, and Firefox.
GNU General Public License v3.0
4.2k stars 417 forks source link

not sending cookies even with cookiePartition #2181

Open antiworkink opened 6 days ago

antiworkink commented 6 days ago

Expected Behavior

send partitioned cookies

Actual Behavior

doesn't send partitioned cookies

Specifications

Script

first open https://httpbin.org/response-headers?set-cookie=partitioned=works;path=/;expires=Wed,%2021%20Sep%202033%2015:59:37%20GMT;httponly;secure;samesite=none;partitioned

// ==UserScript==
// @name         xxx
// @namespace    xxx
// @version      xxx
// @description  xxx
// @author       xxx
// @match        https://*/*
// @grant        GM.xmlHttpRequest
// @connect      httpbin.org
// ==/UserScript==
GM.xmlHttpRequest({
  url: 'https://httpbin.org/cookies',
  onload: r=>console.log(r.responseText),
  onerror: console.error,
  cookiePartition: {
      topLevelSite: 'https://httpbin.org'
  }
})
derjanb commented 5 days ago

This is a Chrome bug that should be fixed in Chrome 130.

References: https://groups.google.com/a/chromium.org/g/chromium-extensions/c/WW7y6a-P3FI/m/SGniZKLGAQAJ https://issues.chromium.org/issues/361862746