Azure App Service到App Service调用失败,403 [英] Azure App Service to App Service call fails with 403

查看:125
本文介绍了Azure App Service到App Service调用失败,403的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我使用  Esri的
资源代理
通过将请求代理到加载客户端所需的某些资源(在我的情况下显示在地图上的KML和GPX文件)来避免浏览器CORS问题。该网站将在服务器端进行远程http请求,然后将响应
从我自己的域传回客户端。

I use Esri's Resource Proxy to avoid browser CORS issues by proxying requests to certain resources required to load client-side (KML and GPX files in my case to show on a map). The website will make the remote http request server-side and then pass the response back on to the client from my own domain.


此解决方案最近几年,直到2018年7月18日,当试图从同一个应用程序服务计划上托管的另一个Azure应用服务中检索资源时,它工作得很好。对网络上其他地方的其他服务的所有其他请求仍可在没有
问题的情况下运行。当两个Azure应用服务都存在于同一个应用服务计划中时,如果我使用自定义域,这似乎只是一个问题。

This solution worked perfectly for the last few years, until about 18th July 2018, when trying to retrieve a resource from another Azure App Service hosted on the same App Service Plan. Every other request to other services elsewhere on the web still work without issue. It only seems to be an issue if I use my custom domains when both Azure App Services live on the same App Service Plan.


奇怪的是,如果我使用Azure的默认网址而不是我的自定义域,问题就会消失。当我在localhost上本地运行站点以进行测试时,也不会发生此问题。在最近的Azure应用服务环境中,可能突然开始出现问题的任何想法是什么?

The strange thing is that if I use Azure's default url rather than my custom domain, the issue will disappear. The issue also doesn't occur when I'm running the site locally on localhost for testing purposes. Any ideas what might have suddenly started being an issue within the Azure App Service environment very recently?


示例网址:

Example urls:


https://www.my-service.com/proxy.ashx?https://www.my-other-service.com/GetKmlFile/123   =
403"您无权查看此目录或页面。"


https://my-service-staging.azurewebsites.net/proxy.ashx?https://www.my-other-service.com/GetKmlFile/123   =
Works


https:// localhost:123 / proxy.ashx?https://www.my-other-service.com/GetKmlFile/123   =
Works


https://www.my-service.com/proxy.ashx?https://www.dropbox.com/some-file   =
Works

推荐答案

中列出的建议本文件
解决Azure网络应用中的域和SSL证书问题
。此外,如果可行,您可以重新启动Web应用,然后检查是否有帮助。

 

要进一步缩小问题范围,利用App Service诊断,它可以通过推荐潜在的
解决方案来减少试错的可能性并加快解决问题。

要访问App Service诊断程序,请在 中导航到您的App Service应用程序Azure门户
在左侧导航栏中,单击诊断并解决问题,并告知我们结果。


To access App Service diagnostics, navigate to your App Service app in the Azure portal. In the left navigation, click on Diagnose and solve problems, and let us know the outcome.


这篇关于Azure App Service到App Service调用失败,403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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