# 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:** 1\
**Showing post:** 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

```

---

_[View the full topic](https://community.wowza.com/t/stream-unavailable-check-cross-origin-policy-error-on-wowza-player/53587)._
