Facebook like和Twitter tweet按钮导致跨域问题
||
我同时使用Twitter Tweet按钮和Facebook Like按钮
<a href=\"http://twitter.com/share\"
class=\"twitter-share-button\"
data-url=\"http://example.com\"
data-text=\"some text\"
data-count=\"horizontal\"
data-via=\"someone\">Tweet
</a>
<script type=\"text/javascript\" src=\"http://platform.twitter.com/widgets.js\"></script>
<script src=\"http://connect.facebook.net/en_US/all.js#xfbml=1\"></script>
<fb:like
class=\"fbShare\"
href=\"http://example.com\"
font=\"\" send=\"true\"
layout=\"button_count\"
show_faces=\"false\">
</fb:like>
但是他们两个都在不断传播跨域错误,而不是一两个。
实际错误(带有替换项)是
不安全的JavaScript尝试访问
带有URL的框架
https://www.facebook.com/plugins/like.php?channel_url=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df3cde04b84%26origin%3Dhttp% 253A%252F%252Fexample.com%252Ff20b9fb1fc%26relation%3Dparent.parent%26transport%3Dpostmessage&href = http%253A%252F%252Fexample.com%252F&layout = button_count&locale = en_US&node_type = link&sdk = joy&send = true
从带有URL的框架
http://example.com/。域,
协议和端口必须匹配。
不安全的JavaScript尝试访问
带有URL的框架
http://platform0.twitter.com/widgets/tweet_button.html?_=1308700896075&count=horizontal&id=twitter_tweet_button_0&lang=en&original_referer=http%3A%2F%2Fexample.com%2F&text=some text&url = http%3A%2F%2Fexample %2F&via =某人
从带有URL的框架
http://example.com/。域,
协议和端口必须匹配。
没有找到相关结果
已邀请:
2 个回复
薄扩络拜
渴翅吮斡撤