When building a web application, one of the most crucial pain points is securing your website. Despite the purpose of your website, an attacker can use even a minimal vulnerability to affect your application and its users. Cross-site scripting, commonly known as XSS, is one such attack. XSS attacks come in different flavors, such as reflected, persistent, and DOM-based attacks. In this post, we’ll go through what XSS attacks look like in an Angular application with examples. Furthermore, you’ll learn about how you can reduce or prevent XSS vulnerabilities in your web application.