postman
maozuai~zi
这个作者很懒,什么都没留下…
展开
-
把网站cookie复制到本地项目上,本地项目提示接口401unauthorized,postman post数据
问题描述把网站cookie复制到本地项目上,本地项目提示接口 401错误 unauthorized解决方法尝试使用postman测试接口,每次返回的是html,同事说这个接口用postman没有返回值此图是使用post 获取数据的正确写法,只不过这个没有返回值接口:getData() { this.http.post( '/api/runtime/sys/v1.0/messagecenter/inmail/get', { "pageIndex": "1",原创 2021-07-08 17:40:17 · 516 阅读 · 0 评论 -
postman测试接口返回403需要登录,cookie使用
出现的问题:在浏览器中直接访问接口http://XX/api/runtime/sys/v1.0/userinfos?infoType=user是有返回数据的,显示正常在postman输入中http://XX/api/runtime/sys/v1.0/userinfos?infoType=user,返回403错误解决方法添加cookie效果预览...原创 2021-06-15 14:46:07 · 8133 阅读 · 3 评论