This content cannot be displayed in a frame [SOLVED]

Radu Tyrsina
by Radu Tyrsina
Founder & Editor-in-Chief
0 Comments
Download PDF
Affiliate Disclosure

  • Internet Explorer has a bad reputation for being slow, but it's also surprisingly one of the most secure browsers.
  • Sometimes Internet Explorer's security restrictions can be hampered, especially when it returns false-positives for safe content.
  • If you want to learn more about browsers, visit our extensive library of Web Browser guides.
  • Need help with other PC issues? Go ahead and check out our dedicated Fix section!
Fix This content cannot be displayed in a frame

As obscure as it may seem, you’re likely to run into an error message that reads “This content cannot be displayed in a frame” if you’re still a Microsoft Internet Explorer user. Microsoft has been trying to distance itself from Internet Explorer with its Chromium-based browser, Microsoft Edge.

Yet still, you may be forced to run Internet Explorer because your job requires it. So what should you do if you encounter this error? The following guide will answer that question for you.


Quick Tip

Before starting the troubleshooting process, remember that Internet Explorer is no longer supported with features updates from Microsoft, and is therefore no longer as safe as before.

That being the case, one good idea would be to switch to a different web browser altogether, such as Opera.

This tools is fast, powerful, modern, has extensive add-on support, and can even be customized to look and feel in however way you like it.

More so, it is far more stable than IE, so errors like the one above will not happen.

Opera

Opera

Surf the Internet faster than ever before instead of wasting time fixing old browsers by choosing to use Opera instead!

How do I fix the content cannot be displayed in a frame error?

Fix this content cannot be displayed in a frame on IE

1.1. This content cannot be displayed in a frame Internet Explorer 11

Internet Explorer is fairly obsolete but it’s still great for testing and it’s still one of the most secure browsers. The solutions in this guide work with Internet Explorer 11. They can, however, be adapted to previous versions of IE.

It’s unlikely that you’re still running previous versions of Internet Explorer since Microsoft was basically forcing users to upgrade to the latest version in 2019. Nevertheless, if you’ve still stuck with IE 10 or 9, you’ll have to tweak the solutions to suit your version or upgrade to IE11.

Before continuing with the rest of this guide, ensure that you’ve expanded your browser’s window.


1.2. This content cannot be displayed in a frame IE security

This guide will require you to tweak both Internet Explorer‘s and Windows’ security settings. This could leave your PC vulnerable.

It’s important to note that Internet Explorer may not be displaying a frame or embedded content to protect you from it. In the same way, Internet Explorer only displays secure content. Sometimes, it may be doing so erroneously. Either way, you’ll need to exercise a bit of caution when utilizing these steps.

The first thing you need to try is changing your privacy settings.


1.3. Change your IE privacy settings

  1. Hit the Alt key on your keyboard.
  2. From the menu-bar, select Tools.
  3. Select Internet Options from the menu bar.
  4. Click on the Privacy tab.
  5. Click on the Sites button.
  6. In the Address of website text field, type in the name of the website that’s triggering the error.
  7. Click on Allow.
  8. Click on OK.
    changing-privacy-settings-ie
  9. Under the Pop-blocker section, click on the Settings.
  10. Input the name of the website that’s triggering the error into the Address of the website text field.
  11. Click on Close.
  12. Click on OK.

If this doesn’t work, you’ll need to go into your Internet Explorer security settings and change them.


 1.4. Reset all zones to the default level in Internet Explorer

  1. Hit the Alt key on your keyboard.
  2. Select Tools from the menu-bar.
  3. Click on the button labeled Reset all zones to default level.
  4. Select Local intranet from the list of four Internet zones.
    changing-ie-security-settings-content-cannot-be-displayed
  5. Click on the button labeled Sites.
  6. Click on the button labeled Advanced.
  7. Remove all websites from the Website list.
  8. Click on Close.
  9. Click on OK.
  10. Perform steps 5-6 for Trusted sites and Restricted sites.
  11. Click on Apply and OK.

Internet Explorer may be displaying this error due to a security breach due to phishing or stolen content. If you’re confident that you’re not viewing malicious or stolen content and it’s still giving you a “This content cannot be displayed in a frame”, you can try changing Internet Explorer‘s Compatability View settings.


1.5. Changing Internet Explorer’s Compatability View settings for Internet Explorer

  1. Hit the Alt key on your keyboard.
  2. Click on Tools.
  3. Click on Compatability View settings.
  4. Input the name of the website into the Add this website text field.
  5. Click on Add and then close.

Additionally, you can try enabling ActiveX Filtering from the Tools menu. Turning off Windows Defender Smartscreen Filter may be helpful too.

If none of these solutions worked for you, then the issue is with the content, not Internet Explorer. Your other options include running the web-page or content on a less security restrictive browser or modifying the content if it’s yours.

The former may not be an option if your job limits what browsers you can use at work. Despite Internet Explorer being obsolete, you may be a web developer testing out web-pages or an application on it.


Fix  this content cannot be displayed in a frame with Nginx

nginx-logo-ie-frame-display-issue

If you’re writing a web-page and you want to prevent certain elements or frames from appearing on certain browsers, you can use the X-Frame-Options response header. If you’re sending the X-Frame-Options header from an Nginx server, you need to ensure that it’s configured correctly.

To make sure that all frames are appearing for all websites and servers, you need to include this line in your Nginx location, server, or HTTP configuration:

add_header X-Frame-Options SAMEORIGIN always;

If you find that you can’t display a frame in Internet Explorer, then the developer or website admin has purposefully designed the content to be inaccessible through Internet Explorer.


Nevertheless, we hope you can use this guide to resolve the “this content cannot be displayed in a frame” error message. If you want to point out any blind spots on our side, please don’t hesitate to leave a comment down below.

FAQ: Learn more about HTML frames

  • What is a frame in HTML? 

Frames in webpages divide the content into separate sections that can be loaded with HTML independently.  Find out the best website builders to boost your online business.

  • When should you use frames? 

Frames make navigating through a website easier by organizing content into different sections within a single container.

  • What is a frame source?

The frame source refers to the web page that will be displayed as content within a frame. By learning how HTML frames-work, you can understand why a “this content cannot be displayed in a frame” error appears in.