ExtJS Ajax呼叫失败404

时间:2018-10-11 16:52:21

标签: ajax extjs

如果我在浏览器中加载“请求URL”,它会显示JSON代码,因此可以正常加载。下面的Ajax查询不断失败,并显示404错误。

我对AJAX通话知识不高,我在Google以及这里都搜索过有关此问题的信息,但是找不到答案。

Request URL: ******
Request Method: POST
Status Code: 404 Not Found
Remote Address: ******
Referrer Policy: no-referrer-when-downgrade
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: http://localhost:1841
Content-Length: 0
Date: Thu, 11 Oct 2018 16:48:06 GMT
Server: Kestrel
Vary: Origin
X-Powered-By: ASP.NET
Provisional headers are shown
Accept: application/json
Authorization: Bearer ******
Origin: http://localhost:1841
Referer: http://localhost:1841/
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

1 个答案:

答案 0 :(得分:0)

我删除了验证行并删除了方法,现在可以正常工作了。如果没有身份验证,请不要发送身份验证,否则它将失败。