PricingBlog

Does Toddle automatically proxy/hide API calls on the frontend?

  • abaxialeox-1280187003610337422

    Giorgio

    1 year ago

    Hi!

    When I call OpenAI's API from Bubble.io, the platform seems to automatically hide the API key as I can't find it on the frontend. Other bubble devs I know also confirmed.

    Is it the same here in Toddle? I followed a tutorial to create an image gen app and the teacher said we should run the call through a backend. While I understand that's best practice, is it required?

    Thanks!
  • building_stuff-1280191831803691164

    Janis

    1 year ago

    That will be possible soon when Toddle rolls out APIs v2 but at the moment it is not advised to add your OpenAI key in toddle. It will be exposed in the frontend
    💪2
  • nocodeprocode-1280193863612497932

    NoCode ProCode

    1 year ago

    ❤️1
  • building_stuff-1280193869220151438

    Janis

    1 year ago

    So best practice in toddle is to make the call in your backend
  • 1110963297630568508-@NoCode ProCode
    abaxialeox-1280226125989023755

    Giorgio

    1 year ago

    makes sense - thank you for the detailed explanation!
  • nocodeprocode-1280231512725524681

    NoCode ProCode

    1 year ago

    You’re welcome 😇