# Wowza Streaming Engine Error with CloudFront

**URL:** https://community.wowza.com/t/wowza-streaming-engine-error-with-cloudfront/96251
**Category:** Wowza Streaming Engine
**Tags:** cdn
**Created:** [June 26, 2023, 10:18pm UTC](https://community.wowza.com/t/wowza-streaming-engine-error-with-cloudfront/96251 "2023-06-26T22:18:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Chirag\_Chhita](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@Chirag\_Chhita](https://community.wowza.com/u/Chirag_Chhita)
#### Post date: [June 26, 2023, 10:18pm UTC](https://community.wowza.com/t/wowza-streaming-engine-error-with-cloudfront/96251/1 "2023-06-26T22:18:54Z")

</div>

I am trying to get Streaming Engine to work nicely with AWS Cloudfront. If I use the IP address based URL given to me in the “Test Playback” It works great. However, when I try to use the Cloudfront endpoint to replace the IP address, I get an error.  
When I try to play it back via VideoJS on a webpage I get an error also. The error is:  
'Access-Control-Allow-Origin

I have tried to do all the CORS changes on the CloudFront side without any success. I have tried to replicate the settings in Cloudfront from an old AWS account, but that does not appear to work.  
Under Origins, I have set it to Get, Head,Options, and checked Cache HTTP Methods OPTIONS.  
I have tried both Cache Policy and Legacy cache settings

Any tips on what I could be doing wrong?  
Thanks

---

<div class="post-metadata">

### Author: ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)
#### Post date: [July 4, 2023, 9:18am UTC](https://community.wowza.com/t/wowza-streaming-engine-error-with-cloudfront/96251/2 "2023-07-04T09:18:35Z")

</div>

Dear Sir/Madam,  
Thank you for contacting Wowza via our forum.

If you’re able to successfully play the streams using the IP address but not via CloudFront (and this results in an “Access-Control-Allow-Origin” error), it’s possible that there’s a mismatch between HTTP and HTTPS.

If CloudFront is using (or expecting) HTTPS, then this message can occur if part of the workflow uses HTTP. If you’re unable to resolve this on the CloudFront side, it may be worth trying to configure the Wowza Streaming Engine software to use an SSL certificate. Wowza provides StreamLock SSL certificates for both commercial and trial licenses for free.

Please find an article below on how to install and configure a StreamLock certificate.

> **[Get a Wowza StreamLock SSL/TLS certificate](https://www.wowza.com/docs/how-to-get-ssl-certificates-from-the-streamlock-service)**
>
> Set up and manage Wowza Streaming Engine StreamLock SSL/TLS certificates and configure them for RTMPS and HTTPS playback.

Regards,  
Jason Hilton  
Senior Technical Support Engineer  
**WOWZA** | _The **solution** you start with, the **partner** you scale with._

#### [_Wowza Video_](https://www.wowza.com/video?utm_campaign=wowza-video-2022&utm_source=wowza&utm_medium=email-signature)_is here! Look at all the new features that will help elevate your business._

[**Manage your Support cases online**](https://portal.wowza.com/account/support)  
**Bookmark our** [**FAQ page**](https://support.wowza.com/hc/en-us)  
**Bookmark our** [**Status page**](https://status.wowza.com/)  
 ![](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/3/3f119fef7577c4215fcca9d530587529b4e95406.png)
