您的位置:首页 > 其它

post方式跨域

2019-08-05 19:44 246 查看
[code]app.post("/",(req,res)=>{
res.header('Access-Control-Allow-Origin','*');
res.header('Access-Control-Allow-Credentials',' true');
res.header('Access-Control-Allow-Methods','GET,PUT,POST,DELETE,OPTIONS');
res.header('Access-Control-Allow-Headers','WWW-Authenticate,Authorization,Set-Cookie,X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version,name');
res.send();
})

 

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: