設定 Azure App Service 以啟用 Delete 方法
問題
本地開發的 Restful API 發佈到 Azure App Service 就呼叫失敗
結論
設定 web.config
<configuration>
<system.webServer>
<security>
<requestFiltering>
<verbs applyToWebDAV="false">
<add verb="DELETE" allowed="true" />
</verbs>
</requestFiltering>
</security>
</system.webServer>
</configuration>
參照
【Azure 应用服务】如何让App Service 支持 Delete 方法 - 路边两盏灯 - 博客园 (cnblogs.com)
