Handling cookie-ids somewhat diferrently on chromecasts

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-15 08:43:57 +01:00
parent 1abced50ca
commit c1a83648d3
3 changed files with 14 additions and 13 deletions

View File

@@ -6,7 +6,6 @@ var ObjectId = mongojs.ObjectId;
var token_db = mongojs("tokens");
var cookieParser = require("cookie-parser");
var cookies = require("cookie");
var cors = require('cors');
var toShowChannel = {
start: 1,
@@ -89,7 +88,7 @@ var error = {
}
}
router.use('/api/', cors(), function(req, res, next) {
router.use(function(req, res, next) {
next(); // make sure we go to the next routes and don't stop here
});