Permission denied to access property 'Arbiter'

前端 未结 1 1578
醉酒成梦
醉酒成梦 2020-12-17 04:33

I have an iframe FB app. We have three places where we develop it: My localhost, stage server where we test the app, production server. Localhost and production have HTTPS.

相关标签:
1条回答
  • 2020-12-17 05:11

    whenever you have a permission denied message and you are dealing with frames or iframes, it's a document domain issue. One document belongs to domain x and the other is domain y. And notice that www.domain.com and domain.com are not the same document domains!

    When you are tapping into the DOM of one framed document from another one, (whether it is for the purpose of changing the values of a page element or simply reading the values of some hidden variable or url etc), you will get a permission denied message unless both framed documents are served from the same/identical domains.

    So, if one frame belongs to www.mydomain.com and the other happens to be just mydomain.com or www.someotherdomain.com, you get that bloody permission denied error.

    And there is no way around it. And If there were, the identity theft problem would have sky-rocketed in no time.

    0 讨论(0)
提交回复
热议问题