不完全是特定于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?
由于