在画布上绘制跨域图像 [英] To draw cross domain images on canvas

查看:117
本文介绍了在画布上绘制跨域图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以使此解决方案起作用在IE9上?

Is there any way to make this solution work on IE9???

推荐答案

请参阅我对问题的评论.您怎么知道问题完全与Web浏览器有关?您尝试过其他浏览器吗?

您应该始终牢记,一个网站可以轻松地保护图像,使其免受另一域中服务的另一端的使用.这是因为HTTP服务器接收到包含发件人IP的HTTP请求,因此该服务器始终可以应用某些限制.甚至可以在托管级别完成此操作,这会将此选项转换为服务器配置(通常是针对虚拟端).我当前的Web托管提供商有这样的选择.这称为热链接保护.要了解一个想法,请参见:
http://www.htaccesstools.com/hotlink-protection/ [ http://support. hostgator.com/articles/cpanel/what-is-hot-linking-how-do-i-enable-and-disable-hotlink-protection [ http://www.cpanel.net/media/tutorials/hotlink.htm [ ^ ],
http://www.htaccesstools.com/ [ ^ ].

—SA
Please see my comments to the question. How do you know that your problem is related to a Web browser at all? Did you try with other browsers?

You should always keep in mind that a Web site can easily protect images from being used by another side serving on a different domain. This is because an HTTP server receives an HTTP request which contains a sender IP, so the server can always apply certain limitations. This can even be done at the level of hosting, which translates this option into the server configuration, typically for a virtual side. I have such option with my current Web hosting provider. This is called hotlink protection. To get an idea, please see:
http://www.htaccesstools.com/hotlink-protection/[^],
http://support.hostgator.com/articles/cpanel/what-is-hot-linking-how-do-i-enable-and-disable-hotlink-protection[^],
http://www.cpanel.net/media/tutorials/hotlink.htm[^],
http://www.htaccesstools.com/[^].

—SA


这篇关于在画布上绘制跨域图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆