Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
update CSP setting (#901)
Browse files Browse the repository at this point in the history
Signed-off-by: Chunxi Luo chuluo@redhat.com
  • Loading branch information
ChunxiAlexLuo committed Jul 8, 2022
1 parent 855ed35 commit bf6beb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ const bodyParser = require('body-parser'),
const app = express()

app.use(helmet({ // in production these headers are set by management-ingress
frameguard: false
frameguard: false,
hsts: {
maxAge: 63072000,
preload: true
}
}))

// Remove the X-Powered-By headers.
Expand Down

0 comments on commit bf6beb3

Please sign in to comment.