# Perspective Video Stream http and https mixed content

**URL:** <https://forum.inductiveautomation.com/t/perspective-video-stream-http-and-https-mixed-content/48739>\
**Category:** Ignition\
**Created:** [July 12, 2021, 3:54pm UTC](https://forum.inductiveautomation.com/t/perspective-video-stream-http-and-https-mixed-content/48739 "2021-07-12T15:54:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![storm2015](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@storm2015](https://forum.inductiveautomation.com/u/storm2015)\
**Post date:** [July 12, 2021, 3:54pm UTC](https://forum.inductiveautomation.com/t/perspective-video-stream-http-and-https-mixed-content/48739/1 "2021-07-12T15:54:29Z")

</div>

I am trying to stream from an IP camera within a Perspective project using the video player. I have successfully managed to access the stream using the following format:

‘[http://User:Password@x.x.x.x/cgi-bin/mjpg/video.cgi?channel=1&subtype=1](http://User:Password@x.x.x.x/cgi-bin/mjpg/video.cgi?channel=1&subtype=1)’

When I try and embed the same address into my perspective project I get ‘Error Loading Media’

the console in Chrome shows a ‘Mixed Content error.’ the main project is https. The camera addresses are http and they get blocked as they are a sub resource.

any advice appreciated.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 12, 2021, 4:23pm UTC](https://forum.inductiveautomation.com/t/perspective-video-stream-http-and-https-mixed-content/48739/2 "2021-07-12T16:23:32Z")

</div>

This is a browser restriction, not something Ignition/Perspective are doing intentionally.  
Your options are probably to see if there’s a way to disable the error in Chrome (unlikely, because security) or to stand up some additional service to serve the camera content as HTTPS - look into services like nginx, Treafik, IIS, etc.

---

<div class="post-metadata">

**Author:** ![storm2015](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@storm2015](https://forum.inductiveautomation.com/u/storm2015)\
**Post date:** [July 13, 2021, 9:38am UTC](https://forum.inductiveautomation.com/t/perspective-video-stream-http-and-https-mixed-content/48739/3 "2021-07-13T09:38:13Z")

</div>

> [@paul-griffith](#):
>
> nginx

thanks for the feedback. I am not familiar with those services. Are they used just to change the address from http to https?

I am able to set the camera up for https, but when I do this, I am still not able to view in Perspective as the browser doesn't allow embedded credentials such as https:User:Password@host

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 13, 2021, 2:54pm UTC](https://forum.inductiveautomation.com/t/perspective-video-stream-http-and-https-mixed-content/48739/4 "2021-07-13T14:54:15Z")

</div>

One of the things proxies like `nginx` can do is transparently rewrite requests from one address to another.  
So something like  
Perspective -[requests proxy URL]-\> proxy (serving as HTTPS) -[requests camera feed with embedded auth]\> camera

From the actual browser, it tries to reach `https://addressOfYourProxy`, and the proxy server itself is what performs the request of your camera feed.
