All ('*', function(req, res, next) {res.header(" access-Control-allow-origin ", "*"); res.header("Access-Control-Allow-Headers", "X-Requested-With"); res.header("Access-Control-Allow-Methods","PUT,POST,GET,DELETE,OPTIONS"); Res. The header (" X - Powered By ", '3.2.1) res. The header (" the content-type ", "application/json. charset=utf-8"); next(); });Copy the code