mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 15:22:30 +00:00
Allow CORS responses to be cached to allow faster initial connection (#1027)
This commit is contained in:
1 parent
eabecb99ac
commit
feb47812e7
1 file changed
+2
@@ -75,6 +75,8 @@ func NewLivekitServer(conf *config.Config,
|
||||
return true
|
||||
},
|
||||
AllowedHeaders: []string{"*"},
|
||||
// allow preflight to be cached for a day
|
||||
MaxAge: 86400,
|
||||
}),
|
||||
}
|
||||
if keyProvider != nil {
|
||||
|
||||
Reference in new issue
Block a user