We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
想做一个简单的前端页面,来显示查询结果,但是发生跨域问题,于是想用nodejs做个中间件,解决跨域问题,但是在用nodejs的http请求https://www.pwxcoo.com/dictionary这个接口时,返回的数据总是为空,在浏览器打开接口和在postman里测试这个接口都没问题,为什么在nodejs里请求会返回空数据?希望大佬解答一下,谢谢了
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
400,显示是成功返回,但是就是没有数据,是个空数组
不不不,400 是无效请求,可能的原因是:
GET
POST
不好意思,打错了,是200
这我也不知道了。。Postman 里可以的话,说明 http 是正常的,可能是你的 node 代码有问题,你可以再看看
No branches or pull requests
想做一个简单的前端页面,来显示查询结果,但是发生跨域问题,于是想用nodejs做个中间件,解决跨域问题,但是在用nodejs的http请求https://www.pwxcoo.com/dictionary这个接口时,返回的数据总是为空,在浏览器打开接口和在postman里测试这个接口都没问题,为什么在nodejs里请求会返回空数据?希望大佬解答一下,谢谢了
The text was updated successfully, but these errors were encountered: