mirror of
https://github.com/gofiber/fiber.git
synced 2025-02-21 19:32:58 +00:00
parent
48acc21117
commit
4f1a712498
@ -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.
|
||||
@ -94,4 +94,4 @@ type Config struct {
|
||||
app.Use(encryptcookie.New(encryptcookie.Config{
|
||||
Key: "secret-thirty-2-character-string",
|
||||
}))
|
||||
```
|
||||
```
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user