HLS: add CORS header (#389)
This commit is contained in:
parent
cfbea7eedc
commit
1848e72225
|
@ -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…
Reference in New Issue