IIS hijacks CORS Preflight OPTIONS request

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

    Check if URLScan tool is installed on IIS. When so check following section:

    
    ;
    ; The verbs (aka HTTP methods) listed here are those commonly
    ; processed by a typical IIS server.
    ;
    ; Note that these entries are effective if "UseAllowVerbs=1"
    ; is set in the [Options] section above.
    ;
    
    GET
    HEAD
    POST
    OPTIONS
    

提交回复
热议问题