Harden web session handling and production config
This commit is contained in:
@@ -16,6 +16,7 @@ app.use(helmet());
|
||||
app.use(
|
||||
cors({
|
||||
origin: env.corsOrigin,
|
||||
credentials: true,
|
||||
})
|
||||
);
|
||||
app.use(morgan(env.nodeEnv === 'production' ? 'combined' : 'dev'));
|
||||
|
||||
Reference in New Issue
Block a user