F12显示如下
Access to XMLHttpRequest at 'http://localhost:8888/user/login/status' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
解决:
java controller层加入注解
@CrossOrigin(origins = "http://localhost:8080",allowCredentials = "true")