mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-06 03:31:02 -06:00
[server] Set same site cookie
This commit is contained in:
@@ -61,5 +61,6 @@ func handleSetCookie(c *gin.Context) {
|
||||
panic(errors.NewError(http.StatusBadRequest, "missing_token", "Auth Token Not Specified"))
|
||||
}
|
||||
secure := c.Request.URL.Scheme == "https"
|
||||
c.SetSameSite(http.SameSiteStrictMode)
|
||||
c.SetCookie("auth_token", token, 3600, "", c.Request.URL.Hostname(), secure, true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user