【发布时间】:2019-07-12 00:38:37
【问题描述】:
我已经部署了一个 Azure 函数。
函数应用程序受 Azure Active Directory 保护,因此我必须使用我的 AAD 凭据登录才能调用它。
当我对该函数进行 GET 调用时,一切都很好。
但是当我尝试进行 POST 调用时,我收到以下错误:
403 ForbiddenYou do not have permission to view this directory or page.
该函数是使用 Visual Studio 部署的,其入口点如下所示:
public static async Task<HttpResponseMessage> Run(
[HttpTrigger(
AuthorizationLevel.Anonymous,
"post", "get",
Route = null)] HttpRequestMessage req,
TraceWriter log)
{
...
}
【问题讨论】:
标签: c# azure post azure-functions http-status-code-403