老师我在Express项目下联调,login.html可以跳转,postman中/api/user/login就一直报错
来源:10-8 express处理session
朱青1900
2019-08-06
在login.html中的跳转
在postman中测试http://localhost:8000/api/user/login


我的数据库数据
因为按照自己理解,可以跳转说明路由应该没问题,为什么postman却报错?
写回答
2回答
-
看你截图,body 的 content-type 是 text ,应该是 json 才行。你看下 headers ,content-type 是啥?
022019-08-06 -
朱青1900
提问者
2019-08-06
老师,我又测试了login-test,可以正常返回,但是postman里login还是出错
00
相似问题
