Allow CORS responses to be cached to allow faster initial connection (#1027)
This commit is contained in:
@@ -75,6 +75,8 @@ func NewLivekitServer(conf *config.Config,
|
|||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
AllowedHeaders: []string{"*"},
|
AllowedHeaders: []string{"*"},
|
||||||
|
// allow preflight to be cached for a day
|
||||||
|
MaxAge: 86400,
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
if keyProvider != nil {
|
if keyProvider != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user