.net core webapi 发布到IIS下时,会出现不支持put ,delete 类型的请求时

.net core webapi 发布到IIS下时,会出现不支持put ,delete 类型的请求时,在WEB.CONFIG 增加下列配置即可。

<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<remove name="WebDAVModule" />
</modules>
</system.webServer>

原文地址:https://www.cnblogs.com/cicada/p/13948365.html