Working Auth0 on site
This commit is contained in:
@@ -22,7 +22,6 @@ app.use(function (req, res, next) {
|
||||
res.header("Access-Control-Allow-Origin", "*");
|
||||
res.header("Access-Control-Allow-Methods", "*");
|
||||
res.header("Access-Control-Allow-Headers", "*");
|
||||
res.header("x-powered-by", "serverless-express");
|
||||
next();
|
||||
});
|
||||
|
||||
@@ -78,9 +77,7 @@ app.get(`/*`, (req, res) => {
|
||||
*/
|
||||
app.use(function (err, req, res, next) {
|
||||
console.error(err);
|
||||
res
|
||||
.status(500)
|
||||
.json({ error: `Internal Serverless Error - "${err.message}"` });
|
||||
res.status(500).json({ error: `Internal Server Error - "${err.message}"` });
|
||||
});
|
||||
|
||||
module.exports = app;
|
||||
|
||||
Reference in New Issue
Block a user