The feature helps to enhance the security of a website by preventing certain types of attacks, such as cross-site scripting (XSS).
By setting the HttpOnly flag on a cookie, the cookie cannot be accessed by malicious scripts that run in the browser.
This can help to protect sensitive information, such as session cookies, from being stolen by attackers. HttpOnly cookies are supported by all major web browsers and can be set by a server in the HTTP response header.
You can see what kind of cookies a website places by going to the developer tools in your browser. Check it out!