Access to XMLHttpRequest at 'http://localhost:8080/api/user/login' from origin 'http://localhost:808
用nodejs+express封装自己的api,遇到跨域问题原本我是这样写进去的://设置跨域访问app.all('*',function(req,res,next){res.header("Access-Control-Allow-Origin","*");res.header("Access-Control-Allow-Headers","X-Requested-With");res.head