mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
support multiple CORS origins (#5150)
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
This commit is contained in:
parent
14ab95f39c
commit
ade0cddeb3
24 changed files with 441 additions and 180 deletions
|
|
@ -190,7 +190,7 @@ type Server struct {
|
|||
Encryption bool
|
||||
ServerKey string
|
||||
ServerCert string
|
||||
AllowOrigin string
|
||||
AllowOrigins []string
|
||||
TrustedProxies conf.IPNetworks
|
||||
ReadTimeout conf.Duration
|
||||
WriteTimeout conf.Duration
|
||||
|
|
@ -254,7 +254,7 @@ func (s *Server) Initialize() error {
|
|||
encryption: s.Encryption,
|
||||
serverKey: s.ServerKey,
|
||||
serverCert: s.ServerCert,
|
||||
allowOrigin: s.AllowOrigin,
|
||||
allowOrigins: s.AllowOrigins,
|
||||
trustedProxies: s.TrustedProxies,
|
||||
readTimeout: s.ReadTimeout,
|
||||
writeTimeout: s.WriteTimeout,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue