You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure API Management自定义React Widget的managementApiUrl格式异常求助

Azure API Management自定义React Widget中managementApiUrl格式变更问题

我在Azure API Management门户的自定义React Widget中遇到问题:该Widget使用未修改的secrets hook通过postMessage()方法从门户托管部分获取值。此前,managementApiUrl属性返回预期的管理API URL,但近期格式发生变更,导致Widget调用管理API失败。

此前返回的内容示例:

{
  "parentLocation": { … },
  "managementApiUrl": "https://<redacted>.developer.azure-api.net/developer",
  "apiVersion": "2022-04-01-preview",
  "token": "SharedAccessSignature token=\"<redacted>\", refresh=\"true\"",
  "userId": "1"
}

现在返回的managementApiUrl格式:

https://<redacted>.management.azure-api.net/subscriptions/000/resourceGroups/000/providers/Microsoft.ApiManagement/service/<redacted>

我未对Widget或secrets hook做任何修改,已尝试以下排查操作:

  • 创建新Widget测试
  • 更换不同Azure API-M实例验证
  • 尝试访问config.json端点,但因CORS问题无法实现

现咨询:

  1. 是否有用户遇到过类似Azure API Management问题?
  2. Azure API Management近期是否有变更或更新导致该现象?
  3. 如何恢复或配置门户使其返回原格式的managementApiUrl?

内容的提问来源于stack exchange,提问作者rylan-michael

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.19 15:42:05