Skip to content

Commit

Permalink
Merge branch '2909-csrf-trustes-origins' of https://github.com/sixcol…
Browse files Browse the repository at this point in the history
…ors/fiber into pr/2910
  • Loading branch information
sixcolors committed Mar 10, 2024
2 parents 1d2f6b6 + 7d420c7 commit d0b0454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/middleware/csrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ app.Use(csrf.New(csrf.Config{

## Token Generation

CSRF tokens are generated on 'safe' requests and when the existing token has expired or hasn't been set yet. If `SingleUseToken` is `true`, a new token is generated after each use. Retrieve the CSRF token using `csrf.TokenFromContext(c)`.
CSRF tokens are generated on 'safe' requests and when the existing token has expired or hasn't been set yet. If `SingleUseToken` is `true`, a new token is generated after each use. Retrieve the CSRF token using `csrf.TokenFromContext(c)`.

## Security Considerations

Expand Down

0 comments on commit d0b0454

Please sign in to comment.