mirror of
https://github.com/syssecfsu/witty.git
synced 2025-05-06 14:47:27 +02:00
WIP
This commit is contained in:
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)))
|
store := sessions.NewCookieStore([]byte(uniuri.NewLen(32)))
|
||||||
rt.Use(sessions.Sessions("witty-session", store))
|
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)
|
csrfGin := adapter.Wrap(csrfHttp)
|
||||||
rt.Use(csrfGin)
|
rt.Use(csrfGin)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user