Home > front end >  Http TRACE does not implemented on IIS
Http TRACE does not implemented on IIS

Time:11-12

I created a default web site on my local IIS and it works fine. After sending HTTP OPTIONS request I've noticed that TRACE verb is enabled. But there is impossible to inspect this verb, because IIS returns 501 - Not Implemented error. I don't completely understand why and how to enable TRACE verb for testing?

OPTIONS enter image description here TRACE enter image description here

CodePudding user response:

IIS responds with TRACE among others by default to an OPTIONS request, but doesn't support it out of the box. You can remove it from the response entirely, let IIS perform it, or implement it yourself if you want to support it.

You can let IIS do it by enabling the verb in Request Filtering (the reverse of what's shown at this link).

It'll take something like a [HttpMethod("TRACE")] controller action if you want to do it yourself.

  • Related