I’ve written my own gateway app which provides tokens for the javascript, but these tokens only provide read-only access. Afaik there is no built-in functionality in squidex atm which wouldn’t require you to expose the secret. Regarding question 2.: What you are asking for sounds like an API gateway, so I would recommend looking at these: