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.

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

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

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