我刚刚将基于 WCF REST 的服务上传到 Azure。
当我尝试使用 PUT 或 DELETE 时,收到 401,未经授权:由于凭据无效,访问被拒绝。
它在我的本地和 Azure 开发环境中运行良好
我看过其他引用证书和权限的帖子。
401 Unauthorized with OData Update and Delete (默认情况下,IIS 中启用 PUT 和 DELETE 动词)
http://goneale.com/2009/10/22/wcf-the-http-request-is-unauthorized-with-client-authentication-scheme-anonymous/ (由于 Azure 的缘故,不适用)
我正在运行默认设置
最佳答案
我必须添加
<authentication mode="None" />
到我的 web.config
关于wcf - Azure REST PUT 或 DELETE 返回 401,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7341816/