我在登录调用 (https://localhost.company.com:4430/login
) 期间设置了以下 cookie:
Name=COMPANY.AUTH
Value=<an encoded value>
Domain=.company.com
Path=/
Expires=<well in the future>
HttpOnly=true
Secure=false
SameSite=Lax
SameParty=<not set>
Priority=Medium
当我在 Chrome 90 或 Firefox 88 中向 https://api-localhost.company.com/some-api
发起 HTTP 请求时,未附加 cookie。
我不明白为什么。此外,Chrome 不会针对请求显示 Cookies 选项卡,据说这有助于诊断未附加 Cookie 的原因。
谁能告诉我为什么上述方法不起作用?