漏洞

BUG-000133837:从 ArcGIS Maps for Power BI 导航至指定在 Portal for ArcGIS 中允许起点的 ArcGIS Enterprise 环境时,将返回错误消息“URL 无效”

Last Published: June 14, 2023

描述

默认情况下,ArcGIS Enterprise 门户允许跨域资源共享 (CORS) 的跨域请求。 这意味着,JavaScript 客户端(例如在任何域中托管的 web 应用程序)可以连接至门户资源。

原因

如果您的 ArcGIS Enterprise 门户已将 CORS 配置为限制对您的门户的跨域请求,则 Power BI Desktop 将无法按预期运行,如 BUG-000133837 中所述。

解决办法

如果使用 ArcGIS Enterprise 10.7.1 或更高版本,则 ArcGIS Enterprise 组织的管理员可以将 CORS 配置为允许来自 Power BI 的请求。

要将 Power BI 添加到允许的起点中,请执行以下操作:

  1. 验证您是否已登录到 ArcGIS Enterprise 组织,以及是否具有管理组织的权限。
  2. 使用 URL https://webadaptorhost.domain.com/webadaptorname/sharing/rest 登录到共享 API
注: 要完成此步骤,必须启用对共享 API 的 HTML 访问。 在许多安全环境中,对共享 API 的 HTML 访问受到限制。 要启用对共享 API 的 HTML 访问,必须将 https://webadaptorhost.domain.com/webadaptorname/portaladmin/security/config 下的 disableServicesDirectory 属性设置为 false。
  1. 登录后,访问 https://webadaptorhost.domain.com/webadaptorname/sharing/rest/portals/self
  2. 滚动至页面底部并单击更新
  3. 在新加载的页面上,向下滚动并找到允许的起点框。
    • 起点用逗号分隔,没有任何空格、引号或方括号。
  4. 将以下文本复制到允许的起点以添加 Power BI 起点。

http://pbi.microsoft.com,https://pbi.microsoft.com,ms-pbi://pbi.microsoft.com

  1. 单击更新组织

Power BI 起点将被添加到允许的起点中。 更改内容将立即生效,无需重新启动门户。

  1.  如果在第 2 步中启用了 HTML 访问,要完成此工作流,则应再次禁用访问。 为此,请转至 https://webadaptorhost.domain.com/webadaptorname/portaladmin/security/config,然后将 disableServicesDirectory 属性设置为 True

文章 ID:000025550

从 ArcGIS 专家处获得帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项

发现关于本主题的更多内容