Skip to content

Commit e9fac00

Browse files
Merge pull request #2531 from alexismch/patch-3
docs(csrf): mark express package as deprecated
2 parents c36efa0 + 525f1eb commit e9fac00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/security/csrf.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Start by installing the required package:
1010
$ npm i --save csurf
1111
```
1212

13+
> warning **Warning** This package is deprecated, refer to [`csurf` docs](https://github.com/expressjs/csurf#csurf) for more information.
14+
1315
> warning **Warning** As explained in the [`csurf` docs](https://github.com/expressjs/csurf#csurf), this middleware requires either session middleware or `cookie-parser` to be initialized first. Please see that documentation for further instructions.
1416
1517
Once the installation is complete, apply the `csurf` middleware as global middleware.

0 commit comments

Comments
 (0)