Azure应用容器白名单列出了其他应用服务和Azure API管理

时间:2019-09-27 13:14:34

标签: azure azure-web-app-service

我想将我的APIM和某些Appservice(UI)白名单到我的App服务容器中。我该怎么做。

我已执行以下步骤

  1. 在网络中-访问限制->添加我的APIM IPs
  2. 在网络中-访问限制->添加我的应用服务IP(我在应用服务下获得的IP->自定义域)

APIM正常运行,但是在我的应用服务(UI)中,出现如下错误

GET https://Testing-api.azurewebsites.net/api/v1/admin/app 403 (Ip Forbidden)
Access to XMLHttpRequest at 'https://Testing-api.azurewebsites.net/api/v1/admin/app' from origin 'https://testing-ui.azurewebsites.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

注意:我仍然在CORS中添加该域,但仍然遇到上述错误。

任何人都可以帮助我解决此问题吗?

0 个答案:

没有答案