问题是这样的:
使用社交登录的插件,然后把插件的js放到一个login_social文件里面,iframe指向login_social,代码如下:
<div class="">您也可以使用以下帐号登录(测试版)</div>
<div id="social_login"></div>
<iframe id="myframe" src="login_social/" class="social"></iframe>
在Firefox下,登录都正常,但是Chrome下,会报下面的错误:
Unsafe JavaScript attempt to initiate navigation for frame with URL 'http://127.0.0.1/' from frame with URL 'https://openapi.baidu.com/social/oauth/2.0/receiver?code=7c6438e1797e5004fc…e.
The frame attempting navigation is neither same-origin with the target, nor is it the target's parent or opener.
求各路大神来帮忙啊……