Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
elmigranto
· 2y ago · 0 comments
> if someone manages to inject arbitrary HTML
If they can, why wouldn’t it be inline <script>?
Comments
[–]
amluto
2y ago
Because CSP can be configured to block inline scripts.
[–]
jsheard
2y ago
The syntax to
allow
inline scripts is even "unsafe-inline" to emphasize that you are entering the danger zone.