html5 - why is this toDataURL line a security error? -
If an image is loaded on one page from another site, and then the canvas is partially Is written as, the use of:
context.drawImage (Image, 0, 0, W, H); It would seem that the unsafe canvas would already have a draw on why
window.location = canvas.toDataURL ('image / png' ); An error message exists SECURITY_ERR; DOM Exception 18. This looks External site is not more insecure than the extra step of saving the image elsewhere. My question is not how to move in this way, therefore
Why is it unsafe? If the page loads from the server then the action is definitely required by the author. According to "post-text" itemprop = "text"> , the information leak may occur if scripts from the original can access information from the images (for example, to read pixels) The second basic concern is that a malicious app can detect such information which otherwise could not be accessed by loading any other domain / original (easily done with images) and reading pixel content in the image. XHR has created space to prevent XD leakage. No images.
Comments
Post a Comment