Connect two databases together across sites

Ok, lets say I have two databases A and B, each connected to either site 1 or 2 respectivly. Is there a way to make it so that I can access database A on site 2 and vice versa?
(both sites are Wix sites)

Hi :raised_hand_with_fingers_splayed:

You can make use of wix-http-functions to expose your site’s APIs.
Please read this article to find out how.

Ahmad