How To Secure React Applications Against XSS Attacks with HTTP-Only Cookies
In this tutorial, you will create a React application and mock API that implements a token-based authentication system set up in a local Docker container. You will exploit the token storage method with a cross-site scripting attack, then mitigate the issue with HTTP-only cookies. By the end of this tutorial, you’ll understand the security considerations needed to implement a functioning token-based authentication system alongside a React and Node web application.