Displaying iframes in Office applications embedded browser

和自甴很熟 提交于 2021-01-29 20:00:38

问题


We included Google reCaptcha v3 in a custom login page that protects SharePoint. The solution works in all browsers except the embedded browser of Office applications. We receive the following error from Word if we try to login via the embedded browser after opening a document from SharePoint:

Your organization's policies are preventing us from completing this action for you. For more info, please contact your help desk.

reCaptcha uses an iframe to work. This iframe looks like this:

<iframe src="https://www.google.com/recaptcha/api2/anchor?ar=1&amp;k=xxxxx;size=invisible&amp;cb=xxxx" width="256" height="60" role="presentation" name="a-o41nkahmlajt" frameborder="0" scrolling="no" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox allow-storage-access-by-user-activation"></iframe>

I confirmed that iframes with a relative src URL work (e.g. "/otherpage/on/same/host.html").

From this source I know that Office does not allow the navigation to any non-https end point.

I confirmed this by changing production html like I described here.

We can't change settings on the end-user clients because they are guest users.

Does anyone know how to allow specific external addresses for iframes in Office application's embedded browser? Is there maybe an alternative on how to embedd reCaptcha?

来源:https://stackoverflow.com/questions/65302025/displaying-iframes-in-office-applications-embedded-browser

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