add helmet

This commit is contained in:
Cogent Apps
2023-03-17 19:03:50 +00:00
parent b04e136ee0
commit b294ac28b1
2 changed files with 5 additions and 0 deletions

View File

@@ -49,6 +49,9 @@ export default class ChatServer {
}
async initialize() {
const { default: helmet } = await import('helmet');
this.app.use(helmet());
this.app.use(express.urlencoded({ extended: false }));
if (process.env.AUTH0_CLIENT_ID && process.env.AUTH0_ISSUER && process.env.PUBLIC_URL) {