Custom URL for private API

Hi everyone,

We’d like to host our bubble app onto our main domain.
To do so, we set up a 200 redirection from ou main domain to our bubble app domain.
Problem is: the bubble app uses the current domain to make its API calls.

Situation:
Our main domain: mysite.com
Our bubble app subdomain: bubble.mysite.com
The 200 redirect: from mysite.com/bubble to bubble.mysite.com - so in the URL bar, mysite.com/bubble is displayed but in reality its bubble.mysite.com that is rendered
Problem: from mysite.com/bubble, the bubble app tries to POST to mysite.com/workflow/start, instead of POST to bubble.mysite.com/workflow/start.

The solution we’re looking for would be a way to indicate to the bubble app that its API is located at bubble.mysite.com instead of mysite.com.

Is there any other solution than using an iframe to do this?

Thanks in advance

Did you find a solution? Been trying to figure out the same thing