Skip to content

EasyConceptBrowser, security and networking

What is XSS and how do you prevent it?

What a good answer covers

Cross-site scripting injects attacker script into a page. Prevent it by escaping output by context, avoiding innerHTML with untrusted data, sanitising any HTML you must render and setting a Content Security Policy.

More on Browser, security and networking

Flashcards for this topic