logoalt Hacker News

collinmandersonyesterday at 2:39 PM1 replyview on HN

> But you can use an `img` tag (`<img src="evil.svg">`) and that'll basically Just Work

That doesn't help too much if evil.svg is hosted on the same domain (with default "Content-Type: image/svg+xml" header), because attacker can send a direct link to the file.


Replies

GoblinSlayeryesterday at 5:04 PM

Reddit horribly breaks direct links to images and serves html instead.