出现报错:Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
出现跨域问题
在后端的@CrossOrigin注解加allowCredentials=“true”,仍然报错
前端请求地址为http://127.0.0.1:5173,
后端请求地址为http://localhost:8080,
此前误以为,localhost与127.0.0.1一致
修改后报错解除