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

    Login issue to hosted frontend developed using fusionauth react sdk

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    2
    369
    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.
    • R
      renukamirihana
      last edited by

      Hi,

      I developed 2 applications expressjs backed reactjs frontend. I used fusion auth in the self-hosted environment in AWS ec2 instance with nginx. All the flows are working nicely in the localhost environment. But in the live environment, I have an issue.

      When I fill the login form and click the sign-in in button it redirect to the My React application and its goes to the unauthenticated path. As my understanding is the issue with the cookies. Seems my authentication cookies are not added to headers or something like that. Since I am using Nginx for both frontend and backend do I need to do any additional configurations for it. I use the same top-level domain for frontend, backend, and fusionauth. I enable SSL as well. So Do I need to add any specific configuration to Nginx or did I do anything wrong?

      I attached my react app cookies section after login operation seems this not include any kind of cookies related to authenticating. Seems the server does not pass that information bcusae I check the backend logs so according to it all are working file and get all the tokens to backend logs as well.

      Screenshot 2024-02-16 142613.png

      mark.robustelliM 1 Reply Last reply Reply Quote 0
      • mark.robustelliM
        mark.robustelli @renukamirihana
        last edited by mark.robustelli

        @renukamirihana Have you been through this page? https://fusionauth.io/docs/operate/deploy/proxy-setup

        What message to you receive when the application goes to the unauthenticated path?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post