appzasGamesToolsDevLearnCheat sheetsQuick calcsConvertersReferenceNetworkTimeCalculatorsCompareLLM prices

What is Cross-site scripting (XSS)?

An attack where a site shows untrusted input as HTML, letting an attacker run JavaScript in other users' browsers.

Prevent it by escaping output, using textContent instead of innerHTML, and setting a Content-Security-Policy.

Learn more

All glossary terms