N
N
Nikolai2018-04-05 16:29:48
IIS
Nikolai, 2018-04-05 16:29:48

Web api 2 when publishing to iis returns error OPTIONS 404 not found?

On web api 2, I wrote a service that I access via a post request with ajax. The request is cross-domain. So on iis express, on iis which is installed on my machine and on iis which I installed on windows 2008 r2 server, everything works fine. But as soon as I upload it to the hosting, I get an OPTIONS 404 not found error. I suspect IIS settings but which ones? I checked the request filtering (the "HTTP commands" tab) - it's clean there. Where to dig? The third day I suffer.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question