Securing API Endpoints so that only my bubble app can get access

Options
Witti
Witti Member

Hey everyone!
My bubble app uses API Endpoints from XANO for example to delete or create data in different databases.

How can I ensure, that only my bubble app has access to these API Endpoints?
Are there any tutorials / videos on how to do that?

Thanks in advance for any help!

Comments

  • Ray Deck
    Ray Deck Trusted Xano Expert ✭✭✭
    Options

    Bubble routes all transactions through its server, so you can check for the Bubble IP range or set a custom header at the API connector level. IP checking is easier to implement (the header is already there) but you run into some work and risk covering the changing range of AWS IP addresses. The custom header with a known key (some random value) is more certain, but takes a bit more work to set up.

    If you use @Eli Beachy‘s plugin, Bubble is no longer routing your connections - traffic comes from your client instead. At that point, you want to make sure these endpoints are secured with authentication, such as Xano’s built-in auth. I think @Chris Coleman made a video covering endpoint-hardening techniques in more detail on the Xano youtube channel.