不完全是 fbook 特定的问题,但是:
我有通过 FB JS SDK 记录用户的简单代码,在 CB 中我试图重新加载顶部框架以保留请求数据。
FB.login(function(response) {
top.location.reload()
})
由于无法从我自己的域代码访问顶部对象,因此此代码被 chrome 阻止,
我越来越:
Blocked a frame with origin "http://localhost/xxxx" from accessing a frame with origin
"http://apps.facebook.com". The frame being accessed set "document.domain" to
"facebook.com", but the frame requesting access did not. Both must set "document.domain"
to the same value to allow access.
那么,如何在执行登录后再次重新加载浏览器 URL?
谢谢