Re:ZeroNet – Uncensorable websites using Bitcoin crypto and ...
by blitmap on Wednesday April 05, 2017 @08:55AM
(#14041705)
It's kind of a shame they didn't let their imagination fly with that one... I wish integrity were a global attribute, because I could totally see using it for things like images and audio/video.
[ Parent
| on HN ]
Re:ZeroNet – Uncensorable websites using Bitcoin crypto and ...
by Ajedi32 on Wednesday April 05, 2017 @09:19AM
(#14041847)
It might work (though I'm not completely sure) if you specify a hash in the img-src directive of the CSP header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Co...
Another option would be to just use a subresource-integrity protected script to check the hash of a downloaded image/video before displaying it.