Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 405: Method not allowed

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"});
like image 370
Beni Madhab Kayal Avatar asked Nov 09 '22 11:11

Beni Madhab Kayal


1 Answers

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

like image 71
Elanchezhiyan Avatar answered Nov 14 '22 23:11

Elanchezhiyan