IIS hijacks CORS Preflight OPTIONS request

后端 未结 12 1124
说谎
说谎 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:29

    I know this is an old post, but I just went through the exact same problem.

    In my situation, I have CORS installed for both OWIN and WebAPI. The OWIN CORS middleware was intercepting the OPTIONS call long before it ever made it to the WebAPI stuff. Maybe this well help someone else in the future.

提交回复
热议问题