diff --git a/app/method.go b/app/method.go index 0b7e3db..2152fc8 100644 --- a/app/method.go +++ b/app/method.go @@ -25,6 +25,8 @@ func initialCaretaker(c *fasthttp.RequestCtx, f func(md common.MethodData) commo var token string var bearerToken bool switch { + case len(c.Request.Header.CookieBytes([]byte("X-Ripple-Token"))) > 0: + token = string(c.Request.Header.CookieBytes([]byte("X-Ripple-Token"))) case len(c.Request.Header.Peek("X-Ripple-Token")) > 0: token = string(c.Request.Header.Peek("X-Ripple-Token")) case strings.HasPrefix(string(c.Request.Header.Peek("Authorization")), "Bearer "):