Description
From @mikewest on August 22, 2015 0:1
After a quick chat with @briansmith, I think I'm convinced that it would be worth giving subresource fetches the capability of canceling themselves based on the resources that requested them. That is, frame-ancestors
(or embedder-src
, or however we'd like to spell it) would work on <img>
in the same way it works on <iframe>
. This could shut down a class of information leakage attacks (e.g. Facebook might want to say that an image on their CDN can only be loaded in the context of facebook.com
, but not in awesome-facebook-images.info
), could make it moderately more difficult to detect whether a user is logged in (as logged-in-logo.png
won't load on evil.com
for anyone, logged-in or not), and could help defend against hotlinking.
Worth considering.
Copied from original issue: w3c/webappsec#458