|
@@ -38,9 +38,9 @@ app.disable('x-powered-by');
|
|
|
//app.use(bodyParser.raw({ type: '*/*' }));
|
|
|
app.use(function(req, res, next) {
|
|
|
// 设置跨域头
|
|
|
- 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");
|
|
|
+ // 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");
|
|
|
|
|
|
/***
|
|
|
* 处理OPTIONS请求
|