enabling cross-origin resource sharing on IIS7

后端 未结 10 2189
轻奢々
轻奢々 2020-11-22 15:22

I recently ran into with posting Javascript requests to another domain. By default XHR posting to other domains is not allowed.

Following the instructions from htt

10条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-22 15:46

    I can't post comments so I have to put this in a separate answer, but it's related to the accepted answer by Shah.

    I initially followed Shahs answer (thank you!) by re configuring the OPTIONSVerbHandler in IIS, but my settings were restored when I redeployed my application.

    I ended up removing the OPTIONSVerbHandler in my Web.config instead.

    
        
    
    

提交回复
热议问题