当我尝试使用url https://www.cshippers.com/orderManagement/OrderManagementReportAction.action?actionCommand=submit&menuRef=REP_APP005_0001MT时,我得到了下面的内容
错误: POST (url) net::ERR_BLOCKED_BY_CLIENT

JavaScript函数:
$.ajax({
url:targetUrl, //supposed to be the url as mentioned in question
data: formData.serialize(),
cache: false,
type: 'POST',
success: function (dataofconfirm) {
openPage( url.substring(0, url.indexOf(".",2)) + ".action?menuRef="+menuRef );
/*hideLoader();*/
},
error: function (xhr, ajaxOptions, thrownError) {
hideLoader();
console.log( thrownError );
}
});发布于 2022-02-17 18:06:01
通常,有两个问题:
的末尾添加一个额外的段。
例如,“api--/movie.json". https://--your”您需要在数据库中添加目标节点,这里是URL末尾的电影。
在您发送请求的URL末尾需要这个.json,否则您的请求将失败。如果您正在使用Firebase,它可以解决您的问题。
您可以使用一个在线开放API测试来测试您的API。
https://stackoverflow.com/questions/70634868
复制相似问题