Showing
1 changed file
with
0 additions
and
13 deletions
... | @@ -8,19 +8,6 @@ const bodyParser = require('body-parser'); | ... | @@ -8,19 +8,6 @@ const bodyParser = require('body-parser'); |
8 | 8 | ||
9 | app.use(bodyParser.urlencoded({extended:true})); | 9 | app.use(bodyParser.urlencoded({extended:true})); |
10 | app.use(bodyParser.json()); | 10 | app.use(bodyParser.json()); |
11 | -// app.use(cors()); | ||
12 | - | ||
13 | -// app.all('/*', function(req, res, next) { | ||
14 | -// res.header("Access-Control-Allow-Origin", "*"); | ||
15 | -// res.header("Access-Control-Allow-Headers", "X-Requested-With"); | ||
16 | -// next(); | ||
17 | -// }); | ||
18 | - | ||
19 | -// app.all('/*', function(req, res, next) { | ||
20 | -// res.header("Access-Control-Allow-Origin", "*"); | ||
21 | -// res.header("Access-Control-Allow-Headers", "X-Requested-With"); | ||
22 | -// next(); | ||
23 | -// }); | ||
24 | 11 | ||
25 | const db = mongoose.connection; | 12 | const db = mongoose.connection; |
26 | db.on('error', console.error); | 13 | db.on('error', console.error); | ... | ... |
-
Please register or login to post a comment