mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-27 21:42:01 -08:00
HLS: add CORS header (#389)
This commit is contained in:
parent
cfbea7eedc
commit
1848e72225
1 changed files with 1 additions and 0 deletions
|
|
@ -600,6 +600,7 @@ func (c *Converter) runRequestHandler(terminate chan struct{}, done chan struct{
|
|||
req.Res <- f.buf.NewReader()
|
||||
|
||||
case req.Subpath == "":
|
||||
req.W.Header().Add("Access-Control-Allow-Origin", "*")
|
||||
req.Res <- bytes.NewReader([]byte(index))
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue