mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 19:40:19 +08:00
Set CookieSameSite to None.
This commit is contained in:
3
main.go
3
main.go
@ -15,6 +15,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/astaxie/beego/plugins/cors"
|
||||
"github.com/casdoor/casdoor/controllers"
|
||||
@ -45,6 +47,7 @@ func main() {
|
||||
beego.BConfig.WebConfig.Session.SessionProvider="file"
|
||||
beego.BConfig.WebConfig.Session.SessionProviderConfig = "./tmp"
|
||||
beego.BConfig.WebConfig.Session.SessionGCMaxLifetime = 3600 * 24 * 365
|
||||
beego.BConfig.WebConfig.Session.SessionCookieSameSite = http.SameSiteNoneMode
|
||||
|
||||
beego.Run()
|
||||
}
|
||||
|
Reference in New Issue
Block a user