zl程序教程

您现在的位置是:首页 >  前端

当前栏目

postman测试重定向接口,We're sorry but system-cn doesn't work properly without JavaScript enabled. Please enable it to continue

2023-09-14 08:59:26 时间

postman测试get请求时,响应200,但是接口返回:We're sorry but system-cn doesn't work properly without JavaScript enabled. Please enable it to continue

问题原因:被测接口存在重定向所致,如果接口重定向到其它url,postman也会自动跳转到该url。如果想看到这个url,需要关闭postman的自动重定向功能

 

 打开右上角的Settings设置界面,关闭Automatically follow redirects即可。
再次请求,不会自动跳转,在响应头的Location中看到重定向的url。