Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
moe
· 11y ago · 0 comments
But if the scenario is an attacker who can inject HTML tags, why wouldn't they simply run their script directly via <script>do_evil();</script>?
Comments
[–]
pauljohncleary
11y ago
Because a properly configured content security policy will block any inlined js (and external js files on non whitelisted domains)