【跨域问题】接口支持跨域 has been blocked by CORS policy: No ‘Access-Control-Allow-Origin‘ header is present on
·
前后端不同域时,前端请求接口会报:
has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
是不支持跨域。
解决方法: 在后端接口 加上
@CrossOrigin
注解。
更多推荐


所有评论(0)