Iframe problems - Forum

Forum Navigation
You need to log in to create posts and topics.

Iframe problems

Has anyone start to get problem showing other web sites in an iframe.

I have three iframes and only one will show the site. I did have two working but one has just stop and told me it can only be opened in a new window.

This is the link that worked but know does not: https://aslefeducation.theskillsnetwork.com

and this is the one that has always needed its own page: https://theaimgroup.co.uk/booking-form/0014J00000hCckf

I have looked at the page with Chrome, Edge and Firefox, and all will not show these pages.

Am I missing something or has an update changed the rules, making it difficult to show some sites.

@m-burdess

I have three iframes and only one will show the site. I did have two working but one has just stop and told me it can only be opened in a new window.

It could be that the website in question has put in place measures to prevent the page to be shown within an iframe.

This is often done to protect the website owners from hackers who try and use their good reputation to trick unsuspecting viewers into thinking the entire page belongs to the trusted website.

If you are fluent in html, you can prove/disprove this with a simple page that includes an iframe.

I have looked at the page with Chrome, Edge and Firefox, and all will not show these pages.
Am I missing something or has an update changed the rules, making it difficult to show some sites.

Apart from the afore mentioned measures taken by the website(s), Browsers may be enforcing CORS restrictions ... web pages that are launched from your C; drive) are not responded when CORS restrictions are in effect ... right click on the webpage and choose Inspect from the resulting context-menu ... then navigate to the console tab ... error messages related to CORS issues usually appear here.

@gaev

Thank you for the information, I have gone onto the two sites and both show Script issues ( disallowed MINE type ("image/png")), and the second site also has Cross-Origin Request Blocked.  So, it's time to change and just give people a link to the forms.

Once again thank you for the help

@m-burdess

disallowed MINE type ("image/png")

Yes, most sites will have this restriction to prevent other websites from using their images (the internet traffic is charged to the site where the image file is hosted) ... also, hackers sometimes link to images on trusted websites to fool the user into thinking they are on the trusted website.

So, it's time to change and just give people a link to the forms.

The link could be in the form of a Button; the click event could be setup to open the target website in an adjacent browser tab.

luishp has reacted to this post.
luishp