In your case, I would suggest http://anyorigin.com - it's simple to use and (unless you're sending volatile information) perfectly viable. It could all be done in a couple of lines of js!
eBay will not allow including javascript or even iframes in item description.
The only solution for that will probably be using Flash object(that is allowed by eBay) that will communicate with server side scripting page(php/asp) which will make the request to your database.
The cross-domain communication will be between the flash and the server side page, this issue can be easily solved.
发布评论
评论(2)
阅读规避同源策略的方法了解多种规避方法同源策略。
就您而言,我建议 http://anyorigin.com - 它使用起来很简单(除非您要发送易失性信息)完全可行。几行js就可以完成这一切!
Read Ways to circumvent the same-origin policy for many ways of circumventing the same-origin policy.
In your case, I would suggest http://anyorigin.com - it's simple to use and (unless you're sending volatile information) perfectly viable. It could all be done in a couple of lines of js!
eBay 不允许在商品描述中包含 JavaScript 甚至 iframe。
唯一的解决方案可能是使用 Flash 对象(eBay 允许的),该对象将与服务器端脚本页面(php/asp)通信,该页面将向数据库发出请求。
跨域通信将在flash和服务器端页面之间进行,这个问题很容易解决。
eBay will not allow including javascript or even iframes in item description.
The only solution for that will probably be using Flash object(that is allowed by eBay) that will communicate with server side scripting page(php/asp) which will make the request to your database.
The cross-domain communication will be between the flash and the server side page, this issue can be easily solved.