But how would you call this API from the browser synchronously? I guess in theory there is a synchronous XHR call but I’ve never seen it used. That could be something you add to the problems.
Although I don't recommend doing this it's hardly as difficult as your comment implies.