mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-09 20:02:01 -08:00
allow disabling JWT in HTTP query parameters (#4518)
This commit is contained in:
parent
c17a6de2a6
commit
74bfb988d7
11 changed files with 58 additions and 15 deletions
|
|
@ -249,6 +249,7 @@ func (a *API) middlewareOrigin(ctx *gin.Context) {
|
|||
func (a *API) middlewareAuth(ctx *gin.Context) {
|
||||
req := &auth.Request{
|
||||
Action: conf.AuthActionAPI,
|
||||
Query: ctx.Request.URL.RawQuery,
|
||||
Credentials: httpp.Credentials(ctx.Request),
|
||||
IP: net.ParseIP(ctx.ClientIP()),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue