Hacker News new | ask | show | jobs
by jbert 6419 days ago
You could specify that you expect the referenced resource to be served with a given ETag. Would that be good enough?
1 comments

ETags can be arbitrary, the server can put whatever it wants.
Ah, yes. An attacker could fetch the resource themselves, discover the ETag and serve their malicious resource with the real ETag. Sorry.