1.

How we can secure HTTP cookies against XSS attacks?

Answer»

we have to set flags on the set-cookie HTTP header:

  • HttpOnly
  • secure

After this it will lokk like this : Set-Cookie: sid=; HttpOnly

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.



Discussion

No Comment Found