Skip to content

Commit 91bfa3e

Browse files
committed
📦 helmet Added
1 parent 409b3c4 commit 91bfa3e

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"[Community Material Theme Darker High Contrast]": {}
4+
}
5+
}

apps/api/src/app/loaders/express.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ import cors from 'cors';
44
import MasterRouter from '../api';
55
import { environment } from '../../environments/environment';
66
import path from 'path';
7+
import helmet from 'helmet';
78

89
export default ({ app }: { app: express.Application }) => {
910
/**
1011
* Health Check endpoints
1112
* @TODO Explain why they are here
1213
*/
14+
15+
app.use(helmet());
1316
app.get('/status', (_req, res) => {
1417
res.status(200).end();
1518
});

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"express-basic-auth": "^1.2.0",
4545
"express-jwt": "^6.0.0",
4646
"googleapis": "^59.0.0",
47+
"helmet": "^4.2.0",
4748
"jsonwebtoken": "^8.2.0",
4849
"method-override": "^3.0.0",
4950
"moment": "^2.23.0",

0 commit comments

Comments
 (0)