Skip to content

Commit 3fa004e

Browse files
Merge pull request #2396 from peteralbert/patch-1
Adjust instructions for NestJS 9
2 parents 1882b65 + 2a9da00 commit 3fa004e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/security/helmet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ $ npm i --save @fastify/helmet
3333
[fastify-helmet](https://github.com/fastify/fastify-helmet) should not be used as a middleware, but as a [Fastify plugin](https://www.fastify.io/docs/latest/Reference/Plugins/), i.e., by using `app.register()`:
3434

3535
```typescript
36-
import { fastifyHelmet } from '@fastify/helmet';
36+
import helmet from '@fastify/helmet'
3737
// somewhere in your initialization file
38-
await app.register(fastifyHelmet);
38+
await app.register(helmet)
3939
```
4040

4141
> warning **Warning** When using `apollo-server-fastify` and `@fastify/helmet`, there may be a problem with [CSP](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) on the GraphQL playground, to solve this collision, configure the CSP as shown below:

0 commit comments

Comments
 (0)