Reputation: 562
I have a videojs player in which I will load interactive elements like images/gmaps etc. The most important is images. To make the player secure, I am planning add a SSL certficate but the images coming on the player can be from http or https. How do I handle this?
Upvotes: 0
Views: 46
Reputation: 4425
just place the link and leave rest on Server
that either to put HTTPS
or HTTP
do something like this
<img src = "//www.website.com/image_path_goes_here">
or for a
tag
<a href = "/your_path">Click To Load</a>
Upvotes: 1
Reputation: 11478
You can't and load insecure content over a secure connection. The // trick is only going to work if the images are available over https.
One thing you could do is use a server side script with cURL to temporarily host the images you want, or to send them to the browser in an encoded format over https
Upvotes: 0