IIS POST request HTML documents for 405

Use jQuery to do web development, I found $ .get () request can be sent successfully, but the $ .post () has failed, prompting a status code 405

IIS is found through the search does not allow local file default post request, IIS (10.0 version) under windows10 system is not the default post请求\*.html或\*.jsonfile
need to configure the following configuration:

turn on处理程序映射

Right-click, select添加脚本映射

Request path for the \*.htmlexecutable file for the C:\Windows\System32\inetsrv\asp.dllrequest to limit the form, set the predicate 全部谓词, you can also add request way they want in one of the following predicate

Guess you like

Origin www.cnblogs.com/lqqgis/p/12650812.html