Error 405: Method not allowed

Beni Madhab Kayal picture Beni Madhab Kayal · Jul 28, 2016 · Viewed 13.5k times · Source

I have my json data which i need to be posted to a url or just update the json data in one of my site urls. But i get the 405 error. This is my code.

    $.post("details", {name: "John", location: "us"});

Answer

Elanchezhiyan picture Elanchezhiyan · Jul 28, 2016

405 errors can be traced to configuration of the Web server and security governing access to the content of the Web site. It seems that the server to which you are sending the Post request(your Site's server) has been configured to block Post request.
You can configure your server to allow the Post request. For more details, go to http://www.checkupdown.com/status/E405.html