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的自动重定向功能

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

 

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

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

 

相关文章:

  • 2023-03-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2021-12-11
  • 2021-12-04
猜你喜欢
  • 2021-09-20
  • 2021-10-04
  • 2022-12-23
  • 2021-08-20
  • 2021-08-26
  • 2022-12-23
  • 2021-06-29
相关资源
相似解决方案