How setup CORS headers in wowza streaming engine 4.1.2 for HLS stream

How setup CORS headers in wowza streaming engine 4.1.2 for HLS stream (HTML5 Flowplayer)

Hello,

In order to use the HTML5 player you need to enable CORS because the player is hosted outside of your domain versus a self hosted player.

Of course we would encourage you to upgrade to the latest version.

However, you should be able to do the following:

Add this to the Application.xml /HTTPStreamer Properties container:


  1. cupertinoUserHTTPHeaders
  2. Access-Control-Allow-Origin: *

Once this is added you will need to restart the application.

Regards,

Andy E.

Hi I’m using Wowza Streaming Engine 4.0.4 and have followed the above instructions to enable CORS but am still unable to play videos to the latest version of Chrome. Is there any way to verify that the CORS headers are properly set?

Wowza Streaming Engine™ software version 4.4.0 (or later) is required.

To verify that the CORS headers are properly set

curl -I http://…/playlist.m3u8


For Wowza Streaming Engine™ software version 4.1.2 i receive

HTTP/1.1 200 OK

Date: Thu, 27 Jul 2017 09:52:59 GMT

Content-Type: application/vnd.apple.mpegurl

Accept-Ranges: bytes Server: WowzaStreamingEngine/4.1.2

Cache-Control: no-cache

Access-Control-Allow-Origin: *

Content-Length: 139


For Wowza Streaming Engine™ software version 4.7.0 i receive

HTTP/1.1 200 OK

Accept-Ranges: bytes

Access-Control-Expose-Headers: Date, Server, Content-Type, Content-Length

Server: WowzaStreamingEngine/4.7.0

Cache-Control: no-cache

Access-Control-Allow-Origin: *

Access-Control-Allow-Credentials: true

Access-Control-Allow-Methods: OPTIONS, GET, POST, HEAD

Access-Control-Allow-Headers: Content-Type, User-Agent, If-Modified-Since, Cache-Control, Range

Date: Thu, 27 Jul 2017 07:44:04 GMT

Content-Type: application/vnd.apple.mpegurl

Content-Length: 139