Skip to content

Commit 9b32904

Browse files
author
Mick Lawitzke
authored
Update helmet.md
1 parent 0197516 commit 9b32904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/security/helmet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Once the installation is complete, apply it as a global middleware.
1717
```typescript
1818
import * as helmet from 'helmet';
1919
// somewhere in your initialization file
20-
await app.use(helmet());
20+
app.use(helmet());
2121
```
2222

2323
> info **Hint** If you are getting the `This expression is not callable` error while trying to import `Helmet`, you very likely have the `allowSyntheticDefaultImports` and `esModuleInterop` options set to `true` in your project's `tsconfig.json` file. If that's the case, change the import statement to: `import helmet from 'helmet'` instead.

0 commit comments

Comments
 (0)