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。