IFrame on IE11: This content cannot be displayed in a frame - calling same domain

1.5k Views Asked by At

We have an internal website loading a page in an IFrame. Previously we had accidentally set the IFrame to load the page from the wrong environment which is on a different domain so an internal user experienced the message "this content cannot be displayed in a frame". We quickly figured out it was because the page was on the wrong environment and updated the URL so that the IFrame and its parent were calling pages from the same domain.

The issue is that one of the users who experience the initial issue is still receiving the message "this content cannot be displayed in a frame" and we're not sure why.

We have tried:

No one else is experiencing this issue and we're wondering what else can be causing this problem.

1

There are 1 best solutions below

0
Yu Zhou On

What version of IE and OS is the user using? It sounds like IE still loading the iframe from cache. You could use F12 dev tools at first when visiting the page. In the Network tab, turn on 'Always refresh from server', then refresh the page to see if the iframe loads content.

Or you could give the iframe a random id every time when it loads, then the iframe will be forced to refresh in IE.

You could also try to reset IE according to the steps in this article.