Skip to content

Commit 9217e10

Browse files
committed
update helmet to 5
1 parent 1313255 commit 9217e10

File tree

3 files changed

+8
-111
lines changed

3 files changed

+8
-111
lines changed

app.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ require("./backend/data-watch");
1717
const app = express();
1818

1919
// Middlewares
20-
app.use(helmet());
20+
app.use(helmet({
21+
contentSecurityPolicy: false,
22+
crossOriginEmbedderPolicy: false
23+
}));
2124
app.use(bodyParser.json()); // for parsing application/json
2225
app.use(cors());
2326
app.use(fileUpload());

package-lock.json

+3-109
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"filepond-plugin-file-validate-size": "^2.2.5",
7070
"filepond-plugin-file-validate-type": "^1.2.6",
7171
"fuse.js": "^6.5.3",
72-
"helmet": "^3.23.3",
72+
"helmet": "^5.0.2",
7373
"html-webpack-plugin": "^4.5.2",
7474
"jsonfile": "^6.1.0",
7575
"lodash": "^4.17.21",

0 commit comments

Comments
 (0)