Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7742363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:15:27+00:00 2026-06-01T09:15:27+00:00

My app allows users to view pages in an iframe, but pages like www.google.com,

  • 0

My app allows users to view pages in an iframe, but pages like http://www.google.com, will generate an error

Refused to display document because display forbidden by
X-Frame-Options.

and pages like stackoverflow.com/questions/590163/how-to-get-all-options-of-a-select-using-jquery, will send me a alert saying:

For security reasons, framing is not allowed; click OK to remove the
frames.

How should I detect these situations and friendly tell user what happend with a genric message, such as “This page is restricted access, please directly access it from a new tab.’

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:15:28+00:00Added an answer on June 1, 2026 at 9:15 am

    This is because many site include frame buster. The error you are getting is most likely related to ajavascript process trying to access the parent window and getting an access denied error.

    One of the possible solution will be to build a proxy on your server that fetch the html and serve it from your domain but many site won’t like that either and might even trouble you for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building an app that allows users to view pictures off a website. I
I'm working on a swing app that will allow users to view sets of
I have an iPhone app that allows users to record videos and I'd like
I am building a web app in Silverlight which allows users to view and
I am writing an app that allows user to view the list of installed
My rails app allows users to edit a certain json file through the browser.
My ASP.NET (3.5) app allows users to run some complex queries that can take
I have an app that allows users to upload large data files and then
My iPhone app allows for users to type in their usernames and passwords so
I am creating an app that allows users to create and apply for jobs.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.