Skip to content

Commit

Permalink
Fix example (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
HPieters authored Dec 18, 2020
1 parent 3acddd9 commit 3649b70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const helmet = require('fastify-helmet')

fastify.register(
helmet,
// Example of passing an option to x-powered-by middleware
{ hidePoweredBy: { setTo: 'PHP 4.2.0' } }
// Example disables the `contentSecurityPolicy` middleware but keeps the rest.
{ contentSecurityPolicy: false }
)

fastify.listen(3000, err => {
Expand Down

0 comments on commit 3649b70

Please sign in to comment.