Want to try the XSS attack on your own? Here’s what to do:
Download the zip file called ‘023-widgets-xss.zip’ attached to this lecture and extract it
Open a new terminal window and change into the extracted folder
Run ‘npm install’ in the folder
After the ‘npm install’ is complete, run ‘node index.js’
Back in your editor, change the request URL to ‘http://localhost:3001’ and save the file
In the browser, search for the letter “t”. That is a special search term that will cause the server to send you an XSS payload