Fix Safari cookies and CSRF.
This commit is contained in:
parent
9e15bceace
commit
fc5db0e95a
1 changed files with 0 additions and 2 deletions
|
|
@ -30,7 +30,6 @@ func BuildRouter(c *services.Container) error {
|
|||
// Create a cookie store for session data.
|
||||
cookieStore := sessions.NewCookieStore([]byte(c.Config.App.EncryptionKey))
|
||||
cookieStore.Options.HttpOnly = true
|
||||
cookieStore.Options.Secure = true
|
||||
cookieStore.Options.SameSite = http.SameSiteStrictMode
|
||||
|
||||
g.Use(
|
||||
|
|
@ -52,7 +51,6 @@ func BuildRouter(c *services.Container) error {
|
|||
echomw.CSRFWithConfig(echomw.CSRFConfig{
|
||||
TokenLookup: "form:csrf",
|
||||
CookieHTTPOnly: true,
|
||||
CookieSecure: true,
|
||||
CookieSameSite: http.SameSiteStrictMode,
|
||||
ContextKey: context.CSRFKey,
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue