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

**URL:** <https://community.wowza.com/t/how-setup-cors-headers-in-wowza-streaming-engine-4-1-2-for-hls-stream/48900>\
**Category:** Wowza Streaming Engine\
**Created:** [June 1, 2017, 12:30pm UTC](https://community.wowza.com/t/how-setup-cors-headers-in-wowza-streaming-engine-4-1-2-for-hls-stream/48900 "2017-06-01T12:30:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Left\_Chal](https://avatars.discourse-cdn.com/v4/letter/l/48db29/32.png) [@Left\_Chal](https://community.wowza.com/u/Left_Chal)\
**Post date:** [June 1, 2017, 12:30pm UTC](https://community.wowza.com/t/how-setup-cors-headers-in-wowza-streaming-engine-4-1-2-for-hls-stream/48900/1 "2017-06-01T12:30:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Andy\_Engberson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/andy_engberson/32/392_2.png) [@Andy\_Engberson](https://community.wowza.com/u/Andy_Engberson)\
**Post date:** [July 4, 2017, 9:07am UTC](https://community.wowza.com/t/how-setup-cors-headers-in-wowza-streaming-engine-4-1-2-for-hls-stream/48900/2 "2017-07-04T09:07:00Z")

</div>

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:

```auto

```

1. 
2. cupertinoUserHTTPHeaders
3. Access-Control-Allow-Origin: \*
4. 

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

Regards,

Andy E.

---

<div class="post-metadata">

**Author:** ![Shawn\_Thomas](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Shawn\_Thomas](https://community.wowza.com/u/Shawn_Thomas)\
**Post date:** [July 26, 2017, 6:14pm UTC](https://community.wowza.com/t/how-setup-cors-headers-in-wowza-streaming-engine-4-1-2-for-hls-stream/48900/3 "2017-07-26T18:14:41Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Left\_Chal](https://avatars.discourse-cdn.com/v4/letter/l/48db29/32.png) [@Left\_Chal](https://community.wowza.com/u/Left_Chal)\
**Post date:** [July 28, 2017, 2:44pm UTC](https://community.wowza.com/t/how-setup-cors-headers-in-wowza-streaming-engine-4-1-2-for-hls-stream/48900/4 "2017-07-28T14:44:54Z")

</div>

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

* * *
