No https on NS_DEVEL

This commit is contained in:
MrFry 2020-04-20 14:07:13 +02:00
parent 720e616e6a
commit e371744f18

View file

@ -89,6 +89,7 @@ function exit (reason) {
const app = express()
if (!process.env.NS_DEVEL) {
app.use(function (req, res, next) {
if (req.secure) {
next()
@ -101,6 +102,7 @@ app.use(function (req, res, next) {
}
}
})
}
// https://github.com/expressjs/cors#configuration-options
app.use(cors({
credentials: true,