ASP.NET Web API - PUT & DELETE Verbs Not Allowed - IIS 8

前端 未结 19 1947
Happy的楠姐
Happy的楠姐 2020-11-22 05:16

I recently upgraded from Visual Studio 2010 to the Visual Studio 2012 RC. The installer also installs IIS 8 Express which Visual Studio now uses as the default web server.

19条回答
  •  旧时难觅i
    2020-11-22 06:17

    For PHP, it was simply:

    1. Open IIS
    2. Go to Handler Mappings
    3. click edit on php5.6.x or php7.0.x
    4. click "request restrictions"
    5. under the verbs tab, select "one of the following verbs" and add "GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS"

    I imagine this will work with other handlers too.

提交回复
热议问题