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

  • SEARCH
  • Home
  • 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 9180735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:07:28+00:00 2026-06-17T18:07:28+00:00

I run into some trouble with an cross domain iframe hack. I have an

  • 0

I run into some trouble with an cross domain iframe hack.

I have an iframe “if1” on my page that contains another iframe “if2”.

The “top” page is runnung on domain A.
The page of if1 is runnung on domain B.
And the page of if2 is running on domain A.

What I want to do with that is: Running an authentication in if1, passing the result token to the url of if2 as hash and load if2. As when the page of if1 is loaded the token already is authenticated, I simply added if2 with already generated url as following snipped:

<iframe name="if2" id="if2" src="http://example.com/testing#token=8927348962028" onload="javascript:alert('loaded');" onerror="javascript:alert('unable to load iframe');" ></iframe>

Now, the if2 doesn’t load at all, it just stays white. I always get the alert with ‘unable to load iframe’ in it.
But this only happens when if1 is embedded in the “top” page. When I simply load the content of if1 in another tab of my browser, the if2 loads perfectly.

Could there be some policy that prevents second level iframes from being loaded? Or am I missing something?

  • 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-17T18:07:29+00:00Added an answer on June 17, 2026 at 6:07 pm

    I found the solution to my issue.

    If you load page A with an iframe that loads page B and in there again an iframe that loads page A, you have a loop, cause page A loads page B and so on.

    In my case the browser stopped loading the second iframe (the iframe that loads page A again).
    This seems to be a normal behavior to prevent this kind of loops.

    I simply added an ?innerframe=true parameter to the url of if2 and prevented the if1 from loading when that parameter is set. This way the loop disappears and so does the issue.

    @Rune: Thanks for your help, the link to fiddle was very helpful to figure this out.

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

Sidebar

Related Questions

I have run into some trouble with the gd library's imagefilledpolygon() . For some
I have run into some trouble lately with onSaveInstanceState() and onRestoreInstanceState() . I have
I'm currently working on a navigation and have run into some trouble. It has
I'm developing a WP theme for a client and have run into some trouble.
I have run into trouble trying to implement functionality for serializing some classes in
I've run into some trouble with unique constraints in NHibernate. I have a User
We are designing a web site and have run into some UI challenges that
I am a beginner SQLite user and has run into some trouble, hoping to
I've run into some annoying issues with const-correctness in some templated code, that ultimately
I've run into some behavior from Python 2.6.1 that I didn't expect. Here is

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.