cookie丢失
·
chrome升级到80版本cookie的SameSite属性默认值由None变为Lax
在Lax模式
| 类型 | 示例 | None | LAX |
|---|---|---|---|
| 链接 | <a href="..."> | 发送 | 发送 |
| 预加载 | <link rel="prerender" href="..."/> | 发送 | 发送 |
| GET 表单 | <form method="GET" action="..."> | 发送 | 发送 |
| POST 表单 | <form method="POST" action="..."> | 发送 | 不发送 |
| iframe | <iframe src="..."></iframe> | 发送 | 不发送 |
| AJAX | $.get("...") | 发送 | 不发送 |
| Image | <img src="..."> | 发送 | 不发送 |
Set-Cookie: widget_session=abc123; SameSite=None; Secure
Header always edit "Set-Cookie" "path=/" "path=/; Secure; SameSite=None" #tomcat
proxy_cookie_path / "/; httponly; secure; SameSite=None"; #nginx
更多推荐



所有评论(0)