Severity: Best Practice
Netsparker has detected a cookie setting a
SameSite=None attribute without setting a
Secure attribute. This is an invalid format and will cause the browser to reject the cookie.
Until this point, the default browser behavior was to append the cookies to the cross-site requests if the SameSite is not implemented. From now on, browsers will fallback to SameSite=Lax behavior by default. Thus,
SameSite=None; Secure is added as a new SameSite mode in most modern browsers to disable the default SameSite behavior.
Add the Secure attribute to all of the
SameSite=None cookies. Below is a valid cookie example:
Set-Cookie: key=value; SameSite=None; Secure