mirror of
https://github.com/zitadel/zitadel.git
synced 2025-06-01 16:48:23 +00:00
fix: send csrf on root path (#444)
This commit is contained in:
parent
0c442cbb3a
commit
d8eef34a37
@ -83,6 +83,7 @@ func csrfInterceptor(config CSRF, errorHandler http.Handler) (func(http.Handler)
|
|||||||
return csrf.Protect([]byte(csrfKey),
|
return csrf.Protect([]byte(csrfKey),
|
||||||
csrf.Secure(!config.Development),
|
csrf.Secure(!config.Development),
|
||||||
csrf.CookieName(config.CookieName),
|
csrf.CookieName(config.CookieName),
|
||||||
|
csrf.Path("/"),
|
||||||
csrf.ErrorHandler(errorHandler),
|
csrf.ErrorHandler(errorHandler),
|
||||||
), nil
|
), nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user