3
0
mirror of https://github.com/syssecfsu/witty.git synced 2025-04-12 02:37:52 +02:00
This commit is contained in:
Zhi Wang 2022-01-26 10:22:20 -05:00
parent 7474c1eaf2
commit 0565e0309a

@ -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)