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.

cross-domain ajax request error

Solve: 
  springboot in:
    annotated @CrossOrigin

Guess you like

Origin www.cnblogs.com/JimShi/p/11912542.html