How we can secure HTTP cookies against XSS attacks?
we have to set flags on the set-cookie HTTP header:
- HttpOnly
- secure
After this it will lokk like this : Set-Cookie: sid=
Point to be noted: Make sure that you go through this twice as this is the favorite node js interview questions for fresher and experienced as well.
BY Best Interview Question ON 30 Apr 2019