Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please provide a link to a page on your site where we can see this. Thanks. You haven’t given use enough info to offer anything useful. Explain this iframe, please.

    Hi @anasantosuw to be able to load an iframe the server of the page (not your server) need to allow the page to be framed in another domain.
    This is a security limitation. You can learn more from it here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP

    To test if you are inserting the iframe correctly you can test with sites that allow everyone to frame it for example Wikipedia:

    <iframe src="https://www.wikipedia.org" title="wikipedia">
    </iframe>

    Test this iframe and check if it works as expected. After that, replace the URL with the site url you are trying to load. If you get the same ‘Refused to connect’ error it means that you don’t have permission from that website to frame it. Your domain needs to be allowed/whitelisted by the other server as described in my first link.

    I hope that helps.
    Best

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘iFrame issue’ is closed to new replies.