From 0565e0309a214e2a64167d8ff5c1de562f83f12a Mon Sep 17 00:00:00 2001 From: Zhi Wang Date: Wed, 26 Jan 2022 10:22:20 -0500 Subject: [PATCH] WIP --- web/routing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/routing.go b/web/routing.go index 89583ff..41e812f 100644 --- a/web/routing.go +++ b/web/routing.go @@ -30,7 +30,7 @@ func StartWeb(fp *os.File, cmd []string, naked bool, port uint16) { store := sessions.NewCookieStore([]byte(uniuri.NewLen(32))) rt.Use(sessions.Sessions("witty-session", store)) - csrfHttp := csrf.Protect([]byte(uniuri.NewLen(32)), csrf.SameSite(csrf.SameSiteStrictMode)) + csrfHttp := csrf.Protect([]byte(uniuri.NewLen(32))) csrfGin := adapter.Wrap(csrfHttp) rt.Use(csrfGin)