Skip to content

Commit

Permalink
fix: use best secure practices for response headers
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Jun 11, 2024
1 parent cfa389d commit f102acc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import cors from 'cors';
import 'dotenv/config';
import express from 'express';
import fs from 'fs';
import helmet from 'helmet';
import { createProxyMiddleware, fixRequestBody } from 'http-proxy-middleware';
import https from 'https';

Expand All @@ -16,6 +17,7 @@ if (!process.env.OPEN_QUAD_WORD) {

let app = express();

app.use(helmet());
app.use(cors());

// required for parsing submitted form data
Expand Down
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"helmet": "^7.1.0",
"http-proxy-middleware": "^3.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit f102acc

Please sign in to comment.