Why isn't SameSite and HttpOnly set on the CA66666 cookie?
81
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 15:53 PM
Question
Why isn't SameSite and HttpOnly set on the CA66666 cookie?
Environment
N/A
Answer
CA66666 does not have HttpOnly set because it is accessed on the frontend by the Javascript. The best practice for HtppOnly is for it to be set on cookies which are not accessed by the frontend. If there is a need to access it then HttpOnly should not be used.
The SameSite attribute should be used for session cookies in order to prevent CSRF attack. The CA66666 cookie is not a session cookie but rather a cookie that carries a CSRF token and therefore Samesite is not required.