How to configure IIS to allow HttpDelete without Removing WebDAVModule

86 views Asked by At

I have an ASP.NET Core Web API application which uses API verbs like HttpGet, HttpPost and HttpDelete. When App is published HttpDelete is not working.

While testing from Postman error is faced.

HTTP verb used to access this page is not allowed.

If I remove WebDAVModule from web.config. It is working fine.

But removing WebDAV might give issue in distribution and security. Is there any other way to fix this problem other than removing WebDAVModule.

1

There are 1 answers

2
Brando Zhang On

According to your description, I suggest you could modify the webdev settings to disable the allow verb filtering.

More details, you could refer to below steps:

1.Locate the web site which contain the issue and select the webdev rules

enter image description here

2.Select the webdev settings.

enter image description here

3.Locate the allow verb filtering and change the rule from true to false

enter image description here