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

    403 calling Hosted Backend /app/refresh API

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    3
    73
    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.
    • A
      andrzej.taramina
      last edited by

      I'm trying to use the Hosted Backend /app/refresh API to manually refresh tokens using a valid refresh token (obtained from an external JWT reconcile call).

      Using Curl as follows (sensitive values xxxx'ed out):

      curl -v -X POST --cookie "app.rt=_xxxxx" http://localhost:9011/app/xxxxx

      returns a 403 even though the rt and application client id are correct.

      Any idea why this is happening? Running licensed starter edition, v1.69.4 locally on port 9011.

      Thanks!

      B 1 Reply Last reply Reply Quote 0
      • B
        bryan.robinson @andrzej.taramina
        last edited by

        @andrzej-taramina Usually, when we see 403s on the hosted backend, the root cause ends up being an origin issue.

        The endpoint calls need to originate from the same domain the FusionAuth instance lives at

        There's some CORS information in this section of the hosted backend docs: https://fusionauth.io/docs/apis/hosted-backend#prerequisites

        A 1 Reply Last reply Reply Quote 0
        • A
          andrzej.taramina @bryan.robinson
          last edited by

          @bryan-robinson

          I'm getting the 4503 even though I'm running the caller and FusionAuth on localhost for dev testing purposes. The caller is on localhost:8080 and FA is on localhost:9011.

          According to the documentation for app/refresh, this should work.

          Any ideas?

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