|
@@ -37,7 +37,7 @@ app.disable('x-powered-by');
|
|
|
// }));
|
|
|
//app.use(bodyParser.raw({ type: '*/*' }));
|
|
|
app.use(function(req, res, next) {
|
|
|
- // 设置跨域头
|
|
|
+ // 设置跨域头 ************** 本地使用时请去掉以下3行的注释
|
|
|
// res.header("Access-Control-Allow-Origin", "*");
|
|
|
// res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept,Access-Control-Allow-Origin");
|
|
|
// res.header("Access-Control-Allow-Methods", "PUT,POST,GET,DELETE,OPTIONS");
|