Test Your Knowledge

Security - Lesson 4: XSS & CSRF Protection Quiz

Answer all questions to test your understanding

1 What is Cross-Site Scripting (XSS)?
2 How does Razor Pages prevent XSS?
3 What is Cross-Site Request Forgery (CSRF)?
4 How does ASP.NET Core prevent CSRF?
5 What does the [ValidateAntiForgeryToken] attribute do?