Not Secure Cookie

  • CWE 614

secure attribute tells the browser to only send the cookie if the request is being sent over a secure channel (HTTPS). This will help protect the cookie from being passed over unencrypted requests. If the application can be accessed over both HTTP and HTTPS, then there is the potential that the cookie can be sent in clear text.


Always set the secure attribute when the cookie should sent via HTTPS only.