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

ajax跨域请求错误

解决:
  springboot中:
    加注解 @CrossOrigin
posted @ 2019-12-06 08:34  悦风旗下  阅读(3488)  评论(0编辑  收藏  举报