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

    Redirect after authorization in iframe

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    2
    1.5k
    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
        • First post
          Last post