Why do we save cookies inside the browser's cache?

Viewed 9

My question is related to csrf attack. In order to prevent it, we must save the csrf token in our UI and not in the browser so that the hacker cannot access it. Now my question is, why don't we store the cookies in the UI so that the csrf token is no longer needed?

0 Answers
Related