拦截器拦截跨域问题No 'Access-Control-Allow-Origin' header is present on the requested resource.

Access to XMLHttpRequest at 'http://localhost:8230/user/member/login' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

昨天写代码为了获取token加了一个拦截器,今天上来写代码懵逼了,无法登陆。拦截器拦截了跨域请求,我真是....

 

我脑残,在拦截器没想清逻辑,有返回false,我吐了。

拦截器拦截跨域问题No 'Access-Control-Allow-Origin' header is present on the requested resource._第1张图片

你可能感兴趣的:(springcloud)