我有我的 json 数据,我需要将其发布到一个 url,或者只是更新我的一个站点 url 中的 json 数据。但我得到 405 错误。
这是我的代码。
$.post("details", {name: "John", location: "us"});
最佳答案
405 错误可以追溯到 Web 服务器的配置和管理对 Web 站点内容的访问的安全性。您向其发送 Post 请求的服务器(您的站点的服务器)似乎已配置为阻止 Post 请求。您可以配置您的服务器以允许 Post 请求。更多详情,请访问http://www.checkupdown.com/status/E405.html
关于javascript - 错误 405 : Method not allowed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38627443/