HLS: add CORS header (#389)

This commit is contained in:
aler9 2021-05-22 11:12:41 +02:00
parent cfbea7eedc
commit 1848e72225
1 changed files with 1 additions and 0 deletions

View File

@ -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: