Fix cookies
This commit is contained in:
parent
e0ebf2e6bb
commit
6279037386
@ -1,8 +1,10 @@
|
|||||||
package session
|
package session
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gorilla/sessions"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"github.com/gorilla/sessions"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -20,6 +22,7 @@ func New() sessions.Store {
|
|||||||
store.Options.Path = "/"
|
store.Options.Path = "/"
|
||||||
store.Options.HttpOnly = true
|
store.Options.HttpOnly = true
|
||||||
store.Options.Secure = IsProd
|
store.Options.Secure = IsProd
|
||||||
|
//store.Options.SameSite = http.SameSiteStrictMode
|
||||||
|
store.Options.SameSite = http.SameSiteLaxMode
|
||||||
return store
|
return store
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user