Embed web https in iframe

1

There is a problem in putting a url ssl on a label, that is to say that it is https: //, only if I put url http is that I visualize that embedded web

    
asked by Daniel Piad Aldazabal 08.08.2016 в 21:39
source

2 answers

1

I'll tell you that for security the browsers or browsers (At least surely in Chrome and Internet Explorer) do not allow this, since you surely have your iframe on a page http: // and you want to add // this is called "Active Mixed Content"

  

The best strategy to avoid mixed content blocking is to serve all   the content as HTTPS instead of HTTP.

I suggest you upload your iframe https: // inside a page with https: //

    
answered by 08.08.2016 / 23:23
source
0

I do not know if I understood your question correctly, but as an additional security measure, you can also include as a parameter the value origin to the URL, specifying the URL scheme (http: // or https: //) and the domain of the host page in that parameter. Although this is optional, including it protects against malicious use of third parties that can inject javascript into your page and can "hijack" the YouTube player.

For example:

<iframe id="player" type="text/html" width="640" height="390"
  src="http://www.youtube.com/embed/u1zgFlCw8Aw?enablejsapi=1&origin=http://example.com"
  frameborder="0"></iframe>
    
answered by 08.08.2016 в 22:10