Configuring Wowza to append the required HTTP headers to HLS streams
Open [wowza-install-dir]/conf/[application]/Application.xml with you favorite text editor, find the xml tag called HTTPStreamer and set the value of the cupertinoUserHTTPHeaders property to
Access-Control-Allow-Origin: *|Access-Control-Expose-Headers: Content-Length|Access-Control-Allow-Headers: Range
The hole block should look something like this:
<HTTPStreamer>
<!-- Properties defined here will override any properties defined in conf/HTTPStreamers.xml for any HTTPStreamer loaded by this applications -->
<Properties>
<Property>
<Name>cupertinoUserHTTPHeaders</Name>
<Value>Access-Control-Allow-Origin: *|Access-Control-Expose-Headers: Content-Length|Access-Control-Allow-Headers: Range</Value>
</Property>
</Properties>
</HTTPStreamer>
If there is no HTTPStreamer xml tag in your Application.xml file you should manually add the above snippet to the file.
If you want to restrict XHR request only to your website you can set the value of Access-Control-Allow-Origin to your domain name. For example:
Access-Control-Allow-Origin: http://www.website.com
After editing Application.xml you should restart you Wowza app.
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.
Congratulations! That's all you need to do to use Wowza with Viblast.