接口地址为 /interface/admin/login
代理配置为 proxy: {
"/interface/": {
target: "http://192.168.40.56:9988",
secure: false
},
}
http://localhost:8082/interface/admin/login 被重定向 http://192.168.40.56:9988/interface/admin/login;JSESSIONID=1f39c2db-87c4-433f-9009-c591f45b42f4
Access to XMLHttpRequest at 'http://192.168.40.56:9988/interface/admin/login;JSESSIONID=1f39c2db-87c4-433f-9009-c591f45b42f4' (redirected from 'http://localhost:8082/interface/admin/login') from origin 'http://localhost:8082' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.