|
|
|
|
|
by nickknw
4525 days ago
|
|
> How would you like to be largely invulnerable to XSS? No matter if someone managed to trick your server into writing <script>alert(1);</script>, have the browser straight up refuse it? I don't quite get how this header makes you invulnerable to XSS, would someone mind explaining? It seems like it only prevents XSS attacks from loading remote javascript files. What's to stop the attacker from just injecting the entire script inline? If you can get a small piece of javascript to execute you should be able to get a larger piece to execute just fine. I can see how it makes XSS more inconvenient, but I don't understand how it makes you largely invulnerable to it. |
|