Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃┕ Fix: Add csrf_ to default encrypt cookie exception (#1631) #1698

Merged
merged 1 commit into from Jan 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions middleware/encryptcookie/README.md
Expand Up @@ -64,7 +64,7 @@ type Config struct {

// Array of cookie keys that should not be encrypted.
//
// Optional. Default: []
// Optional. Default: ["csrf_"]
Except []string

// Base64 encoded unique key to encode & decode cookies.
Expand Down Expand Up @@ -94,4 +94,4 @@ type Config struct {
app.Use(encryptcookie.New(encryptcookie.Config{
Key: "secret-thirty-2-character-string",
}))
```
```
2 changes: 1 addition & 1 deletion middleware/encryptcookie/config.go
Expand Up @@ -34,7 +34,7 @@ type Config struct {
// ConfigDefault is the default config
var ConfigDefault = Config{
Next: nil,
Except: make([]string, 0),
Except: []string{"csrf_"},
Key: "",
Encryptor: EncryptCookie,
Decryptor: DecryptCookie,
Expand Down