File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ func SetSession(gc *gin.Context, sessionID string) {
3030 }
3131
3232 // Use sameSite = lax by default
33+ // Since app cookie can come from cross site it becomes important to set this in lax mode.
34+ // Example person using custom UI on their app domain and making request to authorizer domain.
3335 // For more information check:
3436 // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite
3537 // https://github.com/gin-gonic/gin/blob/master/context.go#L86
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import (
1111)
1212
1313// GetHost returns hostname from request context
14- // if X-Authorizer-URL header is set it is given highest priority
15- // if EnvKeyAuthorizerURL is set it is given second highest priority.
14+ // if EnvKeyAuthorizerURL is set it is given highest priority.
15+ // if X-Authorizer-URL header is set it is given second highest priority
1616// if above 2 are not set the requesting host name is used
1717func GetHost (c * gin.Context ) string {
1818 authorizerURL , err := memorystore .Provider .GetStringStoreEnvVariable (constants .EnvKeyAuthorizerURL )
You can’t perform that action at this time.
0 commit comments