IIS hijacks CORS Preflight OPTIONS request

后端 未结 12 1137
说谎
说谎 2020-11-27 03:57

I am making a CORS POST request and setting the Content-Type header to json. This triggers a Preflight OPTIONS request to fire (this is good and expected)

This OPTIO

12条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-27 04:38

    I tried all the mentioned posts but nothing worked for me, then i shifted my ASP.Net Web API 2 service to windows server 2012 (IIS 8.5) and same service worked without any changes. So issue was specific to IIS 7.5 on windows 7 machine.

提交回复
热议问题