Attribute of Security The Secure property instructs the browser to send the cookie only if the request is made over a secure channel like HTTPS.
Browsers use the SameSite cookie attribute to determine how first- and third-party cookies should be handled. Depending on the attribute and circumstance, browsers can allow or prevent such cookies.
Overview. When providing a fresh cookie to the user as part of an HTTP Response, the application server can employ the secure attribute. The secure attribute's aim is to prevent cookies from being read by unauthorised parties because they are transmitted in clear text.