Iframe with http and parent with https, rejects the content being the same domain

0

I am dynamically entering an iframe on a div, and have to load an HTTP content with a local path ( link .). This is the function.

function pasteIframe() {
    let ifrm = document.createElement('iframe'); 
    ifrm.setAttribute('src', 'http://192.168.98.120:51285'); 
    ifrm.className = 'ifr';

    let div = presenter.$view.find('.addon1');
    $(ifrm).appendTo(div);
} 

I insert it in the corresponding div but this message appears:

  

Loading of mixed active content has been blocked   " link "

The domain where the main web is hosted has HTTPS protocol and the content of the iframe is HTTP, because that is the internal route.

How can I upload this content?

    
asked by Qadesh 15.01.2018 в 16:42
source

0 answers