is there a way to make an embedded admin app work with frontend and backend having different URLs? I have my client side react application live on a different URL than backend.
In app setup I set App URL to my backend URL, where I handle the oauth flow. After the oauth flow, I'm trying to redirect from my backend to frontend. However, I'm getting this error: APP::ERROR::INVALID_ORIGIN Message origin 'https://frontend.url' does not match app origin 'https://backend.url`
Is there a way around this? Thank you!
I think the convention is your app url should be your front-end url, and your redirect_uri should be your callback url for handling OAuth (back-end in this case). And then after successful OAuth + billing, you redirect back to your front-end url. Whenever a user hits my front-end url, I do a check to my server side to determine whether or not I need to route them to OAuth or Billing.