设置跨域请求头

res.setHeader("Access-Control-Allow-Origin", "*");
res.setHeader("Access-Control-Allow-Headers", "*");
res.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, OPTIONS");

你可能感兴趣的:(跨域请求)