What is the difference between Secure and HTTPOnly cookies?
Date Published: November 22, 2023
The security of cookies is an important subject. HttpOnly and Secure flags can be used to make the cookies more secure.
HttpOnly: The cookies cannot be accessed by JavaScript.
This request is already being sent via Javascript from Web Governance, so that means that the cookie is already being installed on Javascript.
This cannot be set by Web Governance, primarily because we use the cookie from Javascript. It is created, read, and deleted with JavaScript.
Secure: HTTPS only.
When a secure flag is used, the cookie is only sent over HTTPS, which is HTTP over SSL/TLS.
- Web Governance does not use this. We have customers that use our system on HTTP pages, and the Web Governance script must support customers that use both HTTP and HTTPS.
Additional resources
For more information about Web Governance, cookies, and Consent Manager, read the following: