Skip to content

Commit

Permalink
Upgrade Helmet to 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sulkaharo committed Aug 19, 2020
1 parent 359e6a6 commit 2936559
Show file tree
Hide file tree
Showing 3 changed files with 1,478 additions and 4,514 deletions.
1 change: 0 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ function create (env, ctx) {
, reportOnly: secureCspReportOnly
}));
app.use(helmet.referrerPolicy({ policy: 'no-referrer' }));
app.use(helmet.featurePolicy({ features: { payment: ["'none'"], } }));
app.use(bodyParser.json({ type: ['json', 'application/csp-report'] }));
app.post('/report-violation', (req, res) => {
if (req.body) {
Expand Down
Loading

0 comments on commit 2936559

Please sign in to comment.