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

猜你喜欢

转载自www.cnblogs.com/JimShi/p/11912542.html