0

I try to add in a SSL wordpress site an iframe from an external wordpress site with src http://external.com/ but the website is not loading in the iframe. At first time i show that the http was replaced auto by https. I added a filter to not allow replace this but again the site is not loading inside the iframe.

I have try with php too but the same happends. Not loading the URL.

<?php echo file_get_contents('http://external.com/api.php'); ?>

The api.php content is a iframe with random permalink from wordpress posts. I dont use the php method in iframe src. Dont be confused about that.

Is the anyway to make it working?

thank you

  • Take a look to this link related to your question: [How to allow http content within an iframe on a https site](http://stackoverflow.com/questions/43035420/comparing-readonly-value-with-a-value-entered-by-a-user) – Jorge Guerrero Mar 26 '17 at 23:05
  • i 'm not sure about your link but is showing something from the title. – David Charalampidis Mar 27 '17 at 01:06

1 Answers1

0

I have found an answer about 'How to allow http content within an iframe on a https site'. In which the solution proposed is to make a redirect using google or creating your own redirect script on an https page that you control.

I made this reference earlier but with a wrong link, sorry.

Community
  • 1
  • 1
Jorge Guerrero
  • 323
  • 3
  • 5