3 ms·
If you can inject/alter data over the wire, all protections are usually moot - e.g. you can simply omit the CSP header and inject your code. Most attackers don
by icebraining 11y ago
If you can inject/alter data over the wire, all protections are usually moot - e.g. you can simply omit the CSP header and inject your code.
Most attackers don't have that capacity, though; XSS is usually done by tricking the page into running your own JS code (for example, by finding a publicly editable text area which doesn't properly escape HTML). Those restrictions wouldn't stop this attack.