Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HttpOnly for request cookies

Is there a way of setting a request cookie httpOnly? If not why can't we set it? I've set the response cookies to httpOnly using weblogx.xml/weblogic server.

like image 810
Aneesh Vijendran Avatar asked Feb 14 '23 03:02

Aneesh Vijendran


1 Answers

Not possible.

Cookies are set in a HTTP response, and are read from a HTTP request. You can only set flags when cookies are created, so they can only be set in the response when using HTTP so it would not make sense to set HttpOnly on a request cookie.

like image 172
SilverlightFox Avatar answered Feb 23 '23 16:02

SilverlightFox