"https" url 到 Azure 应用程序 Api 的 Azure Web 应用程序请求不起作用

Azure Web App with "https" url to Azure App Api request not working

Angularjs 对外部 Azure 应用程序 Api 的 http 请求从 Azure Web 应用程序 "https" 失败,但在 url 是 http 时有效。身份验证在 Web 应用程序中打开,但如果未通过身份验证则不需要任何操作。我错过了什么?

@bsoulier 带我找到罪魁祸首。导致问题的是同源策略,不匹配的协议(web api url 也需要 "https")。

您的问题是关于 Same Origin Policy,您可以在 this SO answer.

上找到详细信息

长话短说,您不能调用比您所在页面安全性较低的资源(在您的情况下,从HTTPS 页面向下到 HTTP 资源)。