Closed
Description
CheckJWT makes a shallow copy of the inbound request near the end of the function in order to set a new context.
In the context of reverse proxies, this can cause trouble. See golang/go#20068 and golang/go#23544.
The preferred way to modify the context of an inbound request is net/http.Request.Clone.