# bug: httpCORSHeadersAddMain parameter causes heaers growth to invalid header size

**URL:** <https://community.wowza.com/t/bug-httpcorsheadersaddmain-parameter-causes-heaers-growth-to-invalid-header-size/49056>\
**Category:** Wowza Streaming Engine\
**Created:** [June 26, 2017, 11:22am UTC](https://community.wowza.com/t/bug-httpcorsheadersaddmain-parameter-causes-heaers-growth-to-invalid-header-size/49056 "2017-06-26T11:22:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua\_Rubingh1](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@Joshua\_Rubingh1](https://community.wowza.com/u/Joshua_Rubingh1)\
**Post date:** [June 26, 2017, 11:22am UTC](https://community.wowza.com/t/bug-httpcorsheadersaddmain-parameter-causes-heaers-growth-to-invalid-header-size/49056/1 "2017-06-26T11:22:18Z")

</div>

Hi, we were experimenting with the settings

httpCORSHeadersAddMain in our live application. But this setting has a bug. When it is enabled, we see extra headers in the requests. But we also see that those headers will be added at every request on the same file. This sounds normal, but the flaw is that it should NOT use the previous header.

The situation we had, is that a live stream his playlist will be updated around every 10 seconds ( a new chunk created). During that 10 seconds, the playlist is requested let’s say 100 times. (a 100 viewers). Then every request from that 100 will add again the value of the httpCORSHeadersAddMain value. I think this value should be added to the clean headers. Now it looks like that Wowza is caching the playlist with the new headers. And a new request will just add the same httpCORSHeadersAddMain values again to the headers. In other words, the value is repeated 100 times during 10 seconds.

This will cause problems with caching due to big headers. We have disabled this option in order to get the caching stable again.

I think that the value of httpCORSHeadersAddMain should be added to the clean playlist file. And that the outcome of the new headers should not be cached. Or Wowza has to remember where the extra CORS headers are added, and not doing it again as long as the playlist is not re-created.

---

<div class="post-metadata">

**Author:** ![Jermaine\_Hemby](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jermaine\_Hemby](https://community.wowza.com/u/Jermaine_Hemby)\
**Post date:** [July 15, 2017, 4:36pm UTC](https://community.wowza.com/t/bug-httpcorsheadersaddmain-parameter-causes-heaers-growth-to-invalid-header-size/49056/2 "2017-07-15T16:36:37Z")

</div>

Hello

Thanks for contacting the Wowza Community!

Thanks for the detailed information. Here is some steps to follow to help with your issue:

Make sure you are on the latest version of Wowza:

[Install Wowza](https://www.wowza.com/docs/how-to-install-wowza-streaming-engine-video-tutorial)

[Update Wowza](https://www.wowza.com/docs/how-to-update-your-wowza-streaming-engine-installation)

Here is some information on [httpCORS](https://www.wowza.com/docs/how-to-enable-cross-origin-resource-sharing-cors-for-http-based-streams)

If you are still having issues, can you open a ticket from the below link and include the following information:

- Your logs in a .zip file, located here: [install-dir]/logs
- Your conf folder in a .zip file, located here: [install-dir]/conf
- Helpful Article on creating a .zip file: [https://www.wowza.com/docs/how-to-create-a-compressed-zip-file-in-windows-os-x-and-linux](https://www.wowza.com/docs/how-to-create-a-compressed-zip-file-in-windows-os-x-and-linux)

[Open a Ticket Here](https://www.wowza.com/support/open-ticket)

thanks

Jermaine
