prompt-5
This commit is contained in:
@@ -28,8 +28,10 @@ func NewApp(cfg *config.Config) (*fiber.App, error) {
|
||||
}))
|
||||
|
||||
store := session.New(session.Config{
|
||||
KeyLookup: "cookie:" + cfg.SessionKey,
|
||||
CookieHTTPOnly: true,
|
||||
CookieSecure: cfg.Env == config.EnvProd,
|
||||
CookieSameSite: fiber.CookieSameSiteLaxMode,
|
||||
})
|
||||
|
||||
database, err := db.Open(cfg)
|
||||
|
||||
Reference in New Issue
Block a user