Hi all, writing this post to let you know about a new feature on API Connector currently being rolled out.
Edit: It seems like the feature is currently broken for some APIs (but not all). I am actively working on this and be sure to test before turning on this feature on your live apps.
Edit 2: The issues should now be fixed.
Edit 3: You may need to re-create any API Calls you wish to use this feature on
Some API calls can be now made directly from the browser running the app, without having to go through Bubble. Checking this box will result in Bubble apps trying to do that when possible. Note that if the API or API call configuration have any headers, non-private parameters, or shared headers/parameters, the checkbox will disappear, since any such call cannot be done from the browser.
The motivation for this is that sometimes it is unnecessary for API Calls to go through Bubble and it is more efficient for them to be made from the user’s browser directly. Additionally, some APIs have limits on the number of calls a single IP address can make, and if all API calls with such limits go through Bubble we can end up reaching that limit very quickly. It’s as if all apps “shared” the same limit. With this feature, this should no longer happen, and each user’s browser should have its own limit.
Some examples of API calls that wont be made from the browser: API Calls that happen in Actions, API calls that happen from the editor (e.g. call to initialize the API Call). Anything requiring headers or authentication.
Feel free to ask any questions and to let me know if you spot any bugs.
Cheers,