"Because the "SameSite" attribute of the cookie "PHPSESSID" is set to "None" but the "Secure" attribute is missing, this cookie will be rejected in the future." What should I do if this problem occurs?
打不倒的陶陶
2021-05-10 10:15:24
Because the "SameSite" attribute of cookie "PHPSESSID" is set to "None" but the "Secure" attribute is missing, this cookie will be rejected in the future.
The prerequisite for setting the "SameSite" attribute to "None" is that the Secure attribute must be set at the same time, such as: Set-Cookie: widget_session=abc123; SameSite=None; Secure (Cookies can only be sent through the HTTPS protocol), otherwise it will be invalid.