Skip to content

Commit 2a546df

Browse files
Fix Safari cookies and CSRF.
1 parent 885a6ad commit 2a546df

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/handlers/router.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ func BuildRouter(c *services.Container) error {
3030
// Create a cookie store for session data.
3131
cookieStore := sessions.NewCookieStore([]byte(c.Config.App.EncryptionKey))
3232
cookieStore.Options.HttpOnly = true
33-
cookieStore.Options.Secure = true
3433
cookieStore.Options.SameSite = http.SameSiteStrictMode
3534

3635
g.Use(
@@ -52,7 +51,6 @@ func BuildRouter(c *services.Container) error {
5251
echomw.CSRFWithConfig(echomw.CSRFConfig{
5352
TokenLookup: "form:csrf",
5453
CookieHTTPOnly: true,
55-
CookieSecure: true,
5654
CookieSameSite: http.SameSiteStrictMode,
5755
ContextKey: context.CSRFKey,
5856
}),

0 commit comments

Comments
 (0)