Why are OPTIONS requests not arriving in my ASP.NET application?

前端 未结 1 685
青春惊慌失措
青春惊慌失措 2021-01-18 09:14

I can\'t seem to receive HTTP OPTIONS requests in my IIS6 hosted ASP.NET application. I\'m testing it using a debug breakpoint (and file-log) in my Global

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-18 10:11

    For IIS6, you will have to enable the OPTIONS verb explicitly in the management console, and you will also need to map it to be handlded by ASP .NET. Only then, you will be able to register your handler in and get the request processed by ASP .NET.

    (Note, settings only applies to IIS7).

    0 讨论(0)
提交回复
热议问题