从另一个App Service API发出调用应用程序服务REST端点 [英] Issue Calling App Service REST Endpoint from Another App Service API

查看:177
本文介绍了从另一个App Service API发出调用应用程序服务REST端点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我在Azure App Services中托管了.NET Core通知服务。我还有一个Angular 7 FE,它有自己的.NET Core API。在FE应用程序的API中执行的某些操作将向通知服务发出HTTP POST请求,然后
将向我发送通知。当我在本地调试FE应用程序并调用Azure中托管的通知服务时,一切正常;但是当我将我的FE和相关API发布到Azure时,对通知服务的调用不起作用。

I have a .NET Core notification service hosted in Azure App Services. I also have an Angular 7 FE with it's own .NET Core API. Certain actions executed in the FE application's API will make and HTTP POST request to the notification service, which will then send a notification to me. Everything works fine when I debug the FE application locally and call the notification service hosted in Azure; however when I publish my FE and associated API to Azure the call to the notification service does not work.

我怀疑CORS可能是一个问题,但因为我能够从我的当地环境我已经排除了这一点。

I suspected that CORS might be an issue but since i am able to hit the service from my local environment I ruled that out.

一些额外的细节:

两个应用程序都在使用SSL。 

Both applications are using SSL. 

FE配置了自定义域名和SSL证书,通知服务使用默认的azurewebsites.net域。

The FE has a custom domain name and SSL cert configured, the notification service is using the default azurewebsites.net domain.

我怀疑问题与IP /网络配置有关因为他们都共享相同的公共IP地址;但我不确定解决问题或解决问题的最佳方法。

I suspect the issue is related to the IP/Network configuration as they both share the same public IP address; however I am unsure of the best way to troubleshoot or address the issue.

谢谢,

Patrick

推荐答案

您好Patrick,

Hi Patrick,

我们是否将通知服务中的FE应用程序列入白名单?有
出站IP地址
 需要列入白名单。

Did we whitelist the FE app in the notification service? There are outbound IP addresses that would need to be whitelisted.

如果有帮助,请告诉我。

Please let me know if this helps.


这篇关于从另一个App Service API发出调用应用程序服务REST端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆