File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
webplayer-example-vanilla-js Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1919 "body-parser" : " ^2.2.0" ,
2020 "cors" : " ^2.8.5" ,
2121 "express" : " ^5.1.0" ,
22+ "helmet" : " ^8.1.0" ,
2223 "https" : " ^1.0.0" ,
2324 "node-fetch" : " ^3.3.2" ,
2425 "post-me" : " ^0.4.5"
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ const bodyParser = require('body-parser');
77
88const jsonParser = bodyParser . json ( ) ;
99
10+ const helmet = require ( 'helmet' ) ;
11+ app . use ( helmet ( ) ) ;
12+
1013app . use (
1114 cors ( {
1215 origin : '*' ,
Original file line number Diff line number Diff line change @@ -332,6 +332,11 @@ hasown@^2.0.2:
332332 dependencies :
333333 function-bind "^1.1.2"
334334
335+ helmet@^8.1.0 :
336+ version "8.1.0"
337+ resolved "https://registry.yarnpkg.com/helmet/-/helmet-8.1.0.tgz#f96d23fedc89e9476ecb5198181009c804b8b38c"
338+ integrity sha512-jOiHyAZsmnr8LqoPGmCjYAaiuWwjAPLgY8ZX2XrmHawt99/u1y6RgrZMTeoPfpUbV96HOalYgz1qzkRbw54Pmg==
339+
335340[email protected] , http-errors@^2.0.0:
336341 version "2.0.0"
337342 resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3"
You can’t perform that action at this time.
0 commit comments