In the Framework, a method of a method nginx reports the 405 error StatusCode: 405 MethodNotAllowedRemoteAddress: 102.224.214.168: 80 RequestURL: test. miyabaobei. comindex. phpwappaycenter-perpare_by_weixin.h... requ... A Method in the framework nginx reports a 405 error Status Code: 405 Method Not Allowed
Remote Address: 102.224.214.168: 80
Request URL: http://test.miyabaobei.com/index.php/wap/paycenter-perpare_by_weixin.h...
Request Method: GET
Status Code: 405 Method Not Allowed
Reply content:
A Method in the framework nginx reports a 405 error Status Code: 405 Method Not Allowed
Remote Address: 102.224.214.168: 80
Request URL: http://test.miyabaobei.com/index.php/wap/paycenter-perpare_by_weixin.h...
Request Method: GET
Status Code: 405 Method Not Allowed
Generally, a 405 error occurs because the requested method is inconsistent with your configuration. For example:
javascript
app.post('/some/thing', function() {});
If I access/some/thing through a browser, it will certainly throw a 405 exception, because the defined route only supports the POST method.
What is the routing framework.
You should have used backbone or a similar front-end framework. By default, your server is RESTful and 405, which means that your request is not post or Put. You can capture packets and take a look. If you are using backbone, you can reply to me about the problem that I solved recently.