Viblast Documentation
Configuring Apache to append the required HTTP headers to HLS streams
Enable the headers apache module
sudo a2enmod headers
Edit you config file (for example:
/etc/apache2/sites-enabled/site-config.conf
) and add the following lines
<VirtualHost *:80>
...
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Expose-Headers "Content-Length"
Header set Access-Control-Allow-Headers "Range"
</VirtualHost>
To validate that the headers are set appropriately you can run:
curl -v [http-end-point]
The result should contain the following lines (not necessarily in this order):
< Access-Control-Expose-Headers: Content-Length
< Access-Control-Allow-Headers: Range
< Access-Control-Allow-Origin: *
Alternatively you can use our online validator.