前后端不同域时,前端请求接口会报:

has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

是不支持跨域。

解决方法:   在后端接口 加上   

@CrossOrigin

注解。

更多推荐