# How can you get rid of the error of the cors?

**URL:** <https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389>\
**Category:** Wowza Streaming Engine\
**Created:** [December 29, 2021, 2:18am UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389 "2021-12-29T02:18:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![younghwan\_kim](https://avatars.discourse-cdn.com/v4/letter/y/f14d63/32.png) [@younghwan\_kim](https://community.wowza.com/u/younghwan_kim)\
**Post date:** [December 29, 2021, 2:18am UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/1 "2021-12-29T02:18:15Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/f/fa357f4a9c8baa0186ea6a814d59c5cbaeb2f73e.png)

How can you get rid of the error of the cors?

> **[Enable CORS headers](https://www.wowza.com/docs/how-to-enable-cross-origin-resource-sharing-cors-for-http-based-streams)**
>
> Configure cross-origin resource sharing (CORS) headers in Wowza Streaming Engine to enable streaming across domains.

I’ve already referred to it, but it still has a “Cors” error.

---

<div class="post-metadata">

**Author:** ![J\_van\_Marion](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@J\_van\_Marion](https://community.wowza.com/u/J_van_Marion)\
**Post date:** [December 29, 2021, 4:24pm UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/2 "2021-12-29T16:24:26Z")

</div>

Are you aware that you are requesting an internal address into [players.akamai.com](http://players.akamai.com). Give it a try with a WAN address.

---

<div class="post-metadata">

**Author:** ![younghwan\_kim](https://avatars.discourse-cdn.com/v4/letter/y/f14d63/32.png) [@younghwan\_kim](https://community.wowza.com/u/younghwan_kim)\
**Post date:** [December 31, 2021, 2:37am UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/3 "2021-12-31T02:37:10Z")

</div>

thanks for your answer.  
but i’m sorry, but i didn’t get it yet.  
what is the WAN address?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/e/ebe6be0f291a6b5eff2fb53cb20c7f8407a1cc59.png)

Aren’t I supposed to use this ip address?

---

<div class="post-metadata">

**Author:** ![younghwan\_kim](https://avatars.discourse-cdn.com/v4/letter/y/f14d63/32.png) [@younghwan\_kim](https://community.wowza.com/u/younghwan_kim)\
**Post date:** [December 31, 2021, 2:50am UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/4 "2021-12-31T02:50:13Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/7/77cefe6749936b00aee2256546ba04789b3d1f3e.png)

Isn’t this how I test it?

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [December 31, 2021, 11:23am UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/5 "2021-12-31T11:23:02Z")

</div>

What is means is that the errors clearly says your address of the playlist is not secure (requires ssl) and that it is private (it’s a LAN address). Hence it won’t play. At least first try a Internet address (with proper dns etc) instead and then possible have a ssl setup on it to make it secure.

---

<div class="post-metadata">

**Author:** ![younghwan\_kim](https://avatars.discourse-cdn.com/v4/letter/y/f14d63/32.png) [@younghwan\_kim](https://community.wowza.com/u/younghwan_kim)\
**Post date:** [January 1, 2022, 3:33pm UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/6 "2022-01-01T15:33:48Z")

</div>

thanks for your answer.  
oh…Can I set up dns in Wowza engine?

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [January 1, 2022, 3:36pm UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/7 "2022-01-01T15:36:51Z")

</div>

Why not. That would be a simple matter of creating a. DNS A record to map a public IP to a domain or sub domain name through your domain management. Also see these [articles](https://www.wowza.com/docs/ssl) for ssl help.

---

<div class="post-metadata">

**Author:** ![younghwan\_kim](https://avatars.discourse-cdn.com/v4/letter/y/f14d63/32.png) [@younghwan\_kim](https://community.wowza.com/u/younghwan_kim)\
**Post date:** [January 1, 2022, 4:53pm UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/8 "2022-01-01T16:53:40Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/a/aa0726d026a0b4fab8aee4da81d042b5891a264e.png)

I’m trying to use the ssl continuously.  
I added a streamlock file. But it’s not working.

error log : GET [http://6](http://6)\*\*\*\*\*[be2.streamlock.net/Arvada/windowtest/playlist.m3u8](http://be2.streamlock.net/Arvada/windowtest/playlist.m3u8) net::ERR\_CONNECTION\_REFUSED

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [January 1, 2022, 5:36pm UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/9 "2022-01-01T17:36:47Z")

</div>

Just host it with a public ip ans try first then create a dns record type A for the ip and use that. If it still is is on secure then you need ssl. Stream lock is not compulsory but ssl is.

---

<div class="post-metadata">

**Author:** ![younghwan\_kim](https://avatars.discourse-cdn.com/v4/letter/y/f14d63/32.png) [@younghwan\_kim](https://community.wowza.com/u/younghwan_kim)\
**Post date:** [January 2, 2022, 1:24pm UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/10 "2022-01-02T13:24:01Z")

</div>

It’s my first time using it, so I don’t understand it well.  
what is the ‘dns record type A’  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/1/136235a11f603af95f18097fd73fbc01a7a0224b.png)

Isn’t this the ssl setting?

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [January 2, 2022, 3:57pm UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/11 "2022-01-02T15:57:18Z")

</div>

See [this](https://www.cloudns.net/wiki/article/10/). A dns a record is nothing but a. Mapping of your public is address of the instance to a fully qualified domain name. Then you can access the service over the internet using the dns name instead of IP.

---

<div class="post-metadata">

**Author:** ![younghwan\_kim](https://avatars.discourse-cdn.com/v4/letter/y/f14d63/32.png) [@younghwan\_kim](https://community.wowza.com/u/younghwan_kim)\
**Post date:** [January 3, 2022, 2:22am UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/12 "2022-01-03T02:22:26Z")

</div>

![화면 캡처 2022-01-03 112103](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/7/76198f34d57f138c8d752041bbc4fa088cbd6427.png)

Isn’t this the role of DNS?

---

<div class="post-metadata">

**Author:** ![younghwan\_kim](https://avatars.discourse-cdn.com/v4/letter/y/f14d63/32.png) [@younghwan\_kim](https://community.wowza.com/u/younghwan_kim)\
**Post date:** [January 3, 2022, 5:34am UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/13 "2022-01-03T05:34:02Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/a/a3b93c23e51ebaa1bbeb0aa6a0b2073932ef77f2.png)

oh,  
Is there any other way to test streaming on the web?

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [January 3, 2022, 6:22am UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/14 "2022-01-03T06:22:28Z")

</div>

That is saying invalid certificate. Obviously you are trying to use a LAN IP. That won’t do. You need a public IP. Also try to configure some other certificate if you are not good with streamlock, is what I am saying.

---

<div class="post-metadata">

**Author:** ![younghwan\_kim](https://avatars.discourse-cdn.com/v4/letter/y/f14d63/32.png) [@younghwan\_kim](https://community.wowza.com/u/younghwan_kim)\
**Post date:** [January 3, 2022, 8:20am UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/15 "2022-01-03T08:20:17Z")

</div>

Thank you so much.  
Is url applied like this?

[https://61c0a](https://61c0a)\*\*\*\*[e2.streamlock.net/Arvada/windowtest/playlist.m3u8](http://e2.streamlock.net/Arvada/windowtest/playlist.m3u8)

I really want to test it.

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [January 3, 2022, 5:28pm UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/16 "2022-01-03T17:28:35Z")

</div>

I guess it should…if the url is accessible over then web that it.

---

<div class="post-metadata">

**Author:** ![J\_van\_Marion](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@J\_van\_Marion](https://community.wowza.com/u/J_van_Marion)\
**Post date:** [January 3, 2022, 7:27pm UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/17 "2022-01-03T19:27:03Z")

</div>

@younghwan_kim what Connessione is trying to say as i am, that you are behind a router and in order to play your video you have to do some port forwarding.

Your wowza server is in your LAN and you want to access it from the internet (WAN side). Without portforwarding that will never happen.

You cannot point to a LAN address that is behind your router. The internet does not know this address so it does not know where to go.

**Step 1:**  
From what i see in your comments you are using 3 different addresses, so first things first. Set your wowza server to a dedicated (static) LAN ipaddress. So for example, set the ipadress 192.168.40.155 as a STATIC ipaddress on your wowza server.

**Step 2:**  
open a browser and point it to: [https://whatsmyip.com](https://whatsmyip.com) ( **please don’t share it here, keep it to yourself!!** ). This is your WAN ipaddress.

**Step 3**  
Are you familiar with portforwarding on your router?

Access your router. You have to route port: 1935 to your Wowza LAN address  
WAN port 1935 to lan port 1935 on ipaddress 192.168.40.155

**Step 4:**  
Testing from your LAN:  
Open VLC and open the url: [http://192.168.40.155:1935/Aravada/wondowtest/playlist.m3u8](http://192.168.40.155:1935/Aravada/wondowtest/playlist.m3u8)

Testing from WAN (internet)  
Use your phone or some other player that is outside your wifi or LAN on the url [http://YOUR-WANIPADDRESS:1935/Aravada/wondowtest/playlist.m3u8](http://YOUR-WANIPADDRESS:1935/Aravada/wondowtest/playlist.m3u8)

**Step5:**  
Tell us the result. If this is working we can move on to the next step.

i hope this makes it a bit easier to understand.

---

<div class="post-metadata">

**Author:** ![younghwan\_kim](https://avatars.discourse-cdn.com/v4/letter/y/f14d63/32.png) [@younghwan\_kim](https://community.wowza.com/u/younghwan_kim)\
**Post date:** [January 4, 2022, 1:34pm UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/18 "2022-01-04T13:34:06Z")

</div>

@J_van_Marion  
very thank you , I succeeded up to step 4.

---

<div class="post-metadata">

**Author:** ![J\_van\_Marion](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@J\_van\_Marion](https://community.wowza.com/u/J_van_Marion)\
**Post date:** [January 5, 2022, 7:30pm UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/19 "2022-01-05T19:30:55Z")

</div>

@younghwan_kim can you answer these questions?

1. What is the operating system of your wowza server?
2. Do you have a public domainname where you have DNS access on. Can you create a subdomain and point it to your WAN IP? (for example: [wowza.yourdomain.com](http://wowza.yourdomain.com) \> A record \> your WAN IP.
3. Do you want to use Streamlock or Lets Encrypt?

- Both are free, but LetsEncrypt can be renewed automaticly. I have never used streamlock, so i have to take a look at that too first.

---

<div class="post-metadata">

**Author:** ![younghwan\_kim](https://avatars.discourse-cdn.com/v4/letter/y/f14d63/32.png) [@younghwan\_kim](https://community.wowza.com/u/younghwan_kim)\
**Post date:** [January 6, 2022, 3:42am UTC](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389/20 "2022-01-06T03:42:28Z")

</div>

1. I’m using Linux.
2. As you said, I succeeded in streaming using WAN IP as port forwarding, but I can’t use the A record yet.
3. I want to use streamlock.

[Next page](https://community.wowza.com/t/how-can-you-get-rid-of-the-error-of-the-cors/94389.md?page=2)
