How can I load remote content in a WinJS iframe whilst avoiding SEC7117 errors?

百般思念 提交于 2019-12-05 23:08:53

This is mostly likely caused by the iframe security model.

At Features and restrictions by context the table lists Cross-domain XHR requests as being disabled in the web context (which, according to Developing secure apps "remote web content loaded by an iframe is always loaded in the web context").

If you are loading the content via XHR, you will be blocked.

You can investigate methods, using postMessage to fetch data in the Local context and then pass it back into the Web context.

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