no message
This commit is contained in:
6
app.js
6
app.js
@@ -12,6 +12,12 @@ var app = express();
|
|||||||
app.use(logger('dev'));
|
app.use(logger('dev'));
|
||||||
app.use(bodyParser.json({ limit: '5mb' }));
|
app.use(bodyParser.json({ limit: '5mb' }));
|
||||||
app.use(bodyParser.urlencoded({ extended: false }));
|
app.use(bodyParser.urlencoded({ extended: false }));
|
||||||
|
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");
|
||||||
|
next();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
app.use('/auth', auth);
|
app.use('/auth', auth);
|
||||||
app.use('/geocache', geocache);
|
app.use('/geocache', geocache);
|
||||||
|
|||||||
Reference in New Issue
Block a user