Office js 对话框API在导航到任何SSL链接时触发12003事件

Office js 对话框API在导航到任何SSL链接时触发12003事件,office-js,Office Js,在我的外接程序中,我使用标准的asp.net OAuth 2实现从一个单独的子域提供身份验证。这是以前在Office 2016 for windows中使用的。它仍然可以在iPad、Mac和office online上使用。我已经在MSI版本和windows的点击运行(MSI:16.0.4456.1003,更正点击运行“1701”)中进行了测试 我试图得到一个更窄的复制,目前甚至像点击一个链接这样简单的事情在对话框中都不起作用 <!DOCTYPE html> <html>

在我的外接程序中,我使用标准的asp.net OAuth 2实现从一个单独的子域提供身份验证。这是以前在Office 2016 for windows中使用的。它仍然可以在iPad、Mac和office online上使用。我已经在MSI版本和windows的点击运行(MSI:16.0.4456.1003,更正点击运行“1701”)中进行了测试

我试图得到一个更窄的复制,目前甚至像点击一个链接这样简单的事情在对话框中都不起作用

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="utf-8" />
</head>
<body>
    <a href="https://www.microsoft.com">click here</a>
</body>
</html>

这将以12003错误作为响应。此外,如果我从MSI机器上卸载KB3127982,则一切正常

还有其他人经历过吗

我已经发布了一个repo插件,这会有帮助吗

<?xml version="1.0" encoding="UTF-8"?>
<!--Created:cb85b80c-f585-40ff-8bfc-12ff4d0e34a9-->
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TaskPaneApp">
  <Id>1d31e1a3-93e9-41a5-b035-81333ca3665c</Id>

  <!--Version. Updates from the store only get triggered if there is a version change. -->
  <Version>1.0.0.0</Version>
  <ProviderName>[Provider name]</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <!-- The display name of your add-in. Used on the store and various places of the Office UI such as the add-ins dialog. -->
  <DisplayName DefaultValue="12003Repro" />
  <Description DefaultValue="12003Repro"/>

  <!-- Icon for your add-in. Used on installation screens and the add-ins dialog. -->
  <IconUrl DefaultValue="~remoteAppUrl/Images/Button32x32.png" />

  <!-- Domains that will be allowed when navigating. For example, if you use ShowTaskpane and then have an href link, navigation will only be allowed if the domain is on this list. -->
  <AppDomains>
    <AppDomain>https://officejsbugrepro.azurewebsites.net</AppDomain>
    <AppDomain>https://www.microsoft.com</AppDomain>
    <AppDomain>https://www.google.com</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Document" />
  </Hosts>
  <DefaultSettings>
     <SourceLocation DefaultValue="https://officejsbugrepro.azurewebsites.net/home.html" />
  </DefaultSettings>
  <Permissions>ReadWriteDocument</Permissions>
</OfficeApp>

1D31A3-93e9-41a5-b035-81333ca3665c
1.0.0.0
[提供商名称]
恩美
https://officejsbugrepro.azurewebsites.net
https://www.microsoft.com
https://www.google.com
读写文件

所以我在这里确定了问题所在

对于我的实际应用程序,我使用一个自定义OAuth端点,我们所有产品都使用该端点。该登录页面有一个olark chat的链接。显然,olark chat加载了触发此12003错误的内容

上面的这个复制仍然会触发错误状态,但我正在尝试加载。显然,该页面上也有一些东西触发了此错误状态。我认为这里可能仍然有一个值得调查的错误,但这项解决方法为我解决了它。我从登录页面中删除了Olark chat,所有内容都按exp运行ected.

这可能与:

我们正在阻止javascript:URL协议


您的情况可能也发生了类似的情况。

您导航到的域是否列在列表中?是的。我已将应用程序域包括在列表中。这不是12004错误吗?只是作为一个补充。对于Office 365,延迟频道上不存在错误。此代码工作正常。在当前频道上,它将启动他抛出了这个错误。