Explain it in 60 seconds
Cross-site scripting from the backend's view
Backend Engineering · Auth and Security · Beginner
What is cross-site scripting (XSS), and what can the backend do to prevent it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Attacker injects script that runs in victims' browsers.
- Stored, reflected, DOM-based.
- Escape output by context.
- Content Security Policy.
- HttpOnly cookies limit damage.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.