How to install the audio stream is transmitted over http to a website using SSL to avoid mixed content?

Good day, early, I apologize for maybe not correctly formulated question, otherwise I can't explain.

There is a audio stream
stream.site1.EN:6004/;stream.mp3

There is a website
https://site2.ru


For setting audio stream on the site, use the following code:
<audio controls>
<source src="http://stream.site1.ru:6004/;stream.mp3" type="audio/mpeg">
</audio>


But in the case of playback, the console shows a warning
mixed content


How to embed this audio stream on the website that would not have raised a warning mixed content, provided that access to stream.site1.ru we don't have ?
July 12th 19 at 16:50
1 answer
July 12th 19 at 16:52
Solution
Just so messages do not get rid of. If your page is HTTPS then all loadable content is expected in HTTPS.

You can build your proxy with HTTPS repeater, receiving the audio stream through, for example, on nginx.
Disadvantages:
  1. stream.site1.ru will see all connections your users to the audio-stream with the IP of your proxy.
  2. Theoretically, it may slightly increase the waiting time of a stream, but this is one of the only workarounds for the lack of access stream.site1.ru.

Find more questions by tags AudioDigital certificatesHTML