Allow auth through cookie X-Ripple-Token
This commit is contained in:
parent
ee51b999f1
commit
155fbabbbc
|
@ -30,6 +30,8 @@ func initialCaretaker(c *gin.Context, f func(md common.MethodData) common.CodeMe
|
||||||
token = c.Query("token")
|
token = c.Query("token")
|
||||||
case c.Query("k") != "":
|
case c.Query("k") != "":
|
||||||
token = c.Query("k")
|
token = c.Query("k")
|
||||||
|
default:
|
||||||
|
token, _ = c.Cookie("X-Ripple-Token")
|
||||||
}
|
}
|
||||||
|
|
||||||
md := common.MethodData{
|
md := common.MethodData{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user