# Stream Unavailable check cross origin policy error on wowza player

**URL:** <https://community.wowza.com/t/stream-unavailable-check-cross-origin-policy-error-on-wowza-player/53587>\
**Category:** Wowza Player\
**Created:** [June 28, 2019, 2:28pm UTC](https://community.wowza.com/t/stream-unavailable-check-cross-origin-policy-error-on-wowza-player/53587 "2019-06-28T14:28:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hidayat\_Ullah](https://avatars.discourse-cdn.com/v4/letter/h/6a8cbe/32.png) [@Hidayat\_Ullah](https://community.wowza.com/u/Hidayat_Ullah)\
**Post date:** [June 28, 2019, 2:28pm UTC](https://community.wowza.com/t/stream-unavailable-check-cross-origin-policy-error-on-wowza-player/53587/1 "2019-06-28T14:28:46Z")

</div>

I created a live stream using the rest api and got the players for the stream but following is my player code

```auto
<div id="playerElement" style="width:100%; height:0; padding:0 0 56.25% 0"></div><script type="text/javascript">var myPlayer = WowzaPlayer.create('playerElement',{
            "license":"my license key","title":"My-Test Stream","description":"MY Test player","sourceURL":"https://c8ad36-sandbox.entrypoint.cloud.wowza.com/app-c5a2/ngrp:f0aa5cf1_all/playlist.m3u8","autoPlay":false,"volume":"50","mute":false,"loop":false,"audioOnly":false,"uiShowQuickRewind":true,"uiQuickRewindSeconds":"30"}

```

```auto
    );</script>

```

```auto
when i click on the player play icon it gives me error of stream unavialable check cross origin policy

```

```auto
what is the solution to this.

```

```auto
thanks

```

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [June 28, 2019, 4:06pm UTC](https://community.wowza.com/t/stream-unavailable-check-cross-origin-policy-error-on-wowza-player/53587/2 "2019-06-28T16:06:23Z")

</div>

You are mixing HTTP and HTTPS content which is creating a Cross Origin Resource Sharing (CORS) issue which is why you cannot play back your live streams. Your page, the player, and the URL to your stream must all use either HTTP or HTTPS.

Wowza Streaming Engine can use an SSL certificate. We provide a free StreamLock SSL certificate to our customers.  
[https://www.wowza.com/docs/how-to-get-ssl-certificates-from-the-streamlock-service](https://www.wowza.com/docs/how-to-get-ssl-certificates-from-the-streamlock-service)

You can instead use your own SSL certificate if you wish. Note that once you create the JKS file you can install the certificate using the StreamLock method.

[https://www.wowza.com/docs/how-to-import-an-existing-ssl-certificate-and-private-key](https://www.wowza.com/docs/how-to-import-an-existing-ssl-certificate-and-private-key)

You can also request an SSL certificate from a certificate authority.[https://www.wowza.com/docs/how-to-request-an-ssl-certificate-from-a-certificate-authority](https://www.wowza.com/docs/how-to-request-an-ssl-certificate-from-a-certificate-authority)

Please also ensure that you have CORS enabled.  
[https://www.wowza.com/docs/how-to-enable-cross-origin-resource-sharing-cors-for-http-based-streams](https://www.wowza.com/docs/how-to-enable-cross-origin-resource-sharing-cors-for-http-based-streams)

---

<div class="post-metadata">

**Author:** ![Hidayat\_Ullah](https://avatars.discourse-cdn.com/v4/letter/h/6a8cbe/32.png) [@Hidayat\_Ullah](https://community.wowza.com/u/Hidayat_Ullah)\
**Post date:** [June 28, 2019, 8:21pm UTC](https://community.wowza.com/t/stream-unavailable-check-cross-origin-policy-error-on-wowza-player/53587/3 "2019-06-28T20:21:26Z")

</div>

I’m currently testing on localhost and using wowza cloud what is the config option for the stream to play on localhost http?

Thanks

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [June 28, 2019, 9:11pm UTC](https://community.wowza.com/t/stream-unavailable-check-cross-origin-policy-error-on-wowza-player/53587/4 "2019-06-28T21:11:35Z")

</div>

Wowza Streaming Engine is configured to accept connections from Wowza Streaming Engine Manager on the localhost.

---

<div class="post-metadata">

**Author:** ![Hidayat\_Ullah](https://avatars.discourse-cdn.com/v4/letter/h/6a8cbe/32.png) [@Hidayat\_Ullah](https://community.wowza.com/u/Hidayat_Ullah)\
**Post date:** [June 29, 2019, 7:12am UTC](https://community.wowza.com/t/stream-unavailable-check-cross-origin-policy-error-on-wowza-player/53587/5 "2019-06-29T07:12:26Z")

</div>

I’m not using streaming engine i’m using cloud
