Blocked a frame with origin “http://static.ak.facebook.com” from accessing a frame with origin [duplicate]

主宰稳场 提交于 2020-01-03 08:30:29

问题


Suddenly starts to give this error :

Blocked a frame with origin "http://static.ak.facebook.com" from accessing a frame with origin "http://*****.com". The frame requesting access set "document.domain" to "facebook.com", but the frame being accessed did not. Both must set "document.domain" to the same value to allow access.


回答1:


In my experience it means you are running the iFrame somewhere that facebook can't access, like your local computer. Facebook trys to scan your page when your iFrame comes up. If your page is public, you wont get that error and the iFrame/facebook like plugin should work properly.




回答2:


You have an iFrame from Facebook on your site. Some of the code on Facebook's end is trying to update your page. Your browser is blocking this behavior because the iFrame and your site are on different pages. The only way to get rid of this error is to get rid of the iFrame (unless you're friends with someone at Facebook).



来源:https://stackoverflow.com/questions/17308330/blocked-a-frame-with-origin-http-static-ak-facebook-com-from-accessing-a-fra

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!