FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Redirect after authorization in iframe

    Scheduled Pinned Locked Moved Unsolved Q&A
    2 Posts 2 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 8
      8mapta1
      last edited by

      I am using next js along with fusionauth.
      I want to use an iframe to display a fusionauth window in my application.
      The problem is that after entering the login and password, the redirect occurs inside the iframe and my application is displayed in the iframe.
      How can this be fixed?

      I tried setting sandbox setting for iframe but it didn't give any result

      Application Addresses:
      app.domain.com
      auth.domain.com

      joshuaJ 1 Reply Last reply
      Reply Quote 0
      • joshuaJ
        joshua @8mapta1
        last edited by

        @8mapta1 Thanks for the question.

        I might need some context to be better able to assist. But generally, when you are opening an iframe, you will need to direct the actions to this window and the parent window from which it opened.

        Can you confirm how you are doing this?

        A quick search revealed a few tips, which depending on context may, or may not apply to your situation.

        • https://www.ramanean.com/how-to-do-a-redirect-in-parent-window-using-an-iframe/
        • https://www.edureka.co/community/83545/how-to-redirect-parent-window-from-an-iframe-action

        Thanks,
        Josh

        1 Reply Last reply
        Reply Quote 0
        • danD dan moved this topic from Q&A on
        • danD dan moved this topic from Frequently Asked Questions (FAQ) on

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post