Http failure response for (unknown url): 401 From Simple Intercept

1、问题现象及背景

和后台配合做一个验证码功能,前端直接以一个get请求获取验证码数据。报该错误

Http failure response for (unknown url): 401 From Simple Intercept --> http://ng-alain.com/docs/auth"
name

2、原因

前后台没有对齐,后台返回的直接是一个图片,不是数据。

3、解决方式

直接用img标签src去获取

猜你喜欢

转载自blog.csdn.net/ligaoming_123/article/details/89028728
今日推荐