add errors header with default value
This commit is contained in:
parent
a40c1e2331
commit
3e23be2087
@ -100,6 +100,12 @@ function App(statsClient) {
|
||||
app.use(global.log4js.connectLogger(global.log4js.getLogger(), _.defaults(loggerOpts, {level:'info'})));
|
||||
}
|
||||
|
||||
// default X-SQLAPI-Errors header
|
||||
app.use((req, res, next) => {
|
||||
res.set('X-SQLAPI-Errors', '{}');
|
||||
next();
|
||||
});
|
||||
|
||||
app.use(cors());
|
||||
|
||||
// Use step-profiler
|
||||
|
Loading…
Reference in New Issue
Block a user