Is there a simple way to create a server side script that I can call from my client side scripts?
I am using OpenAI and it uses a secret key to allow me to make API calls. It’s bad practice to put the secret key in client code so i need to make a simple relay on the server that i can call from my client script. It would add the appropriate cross origin headers and make the API call after adding the secret key. It would then return the result to the client.
Of course you could also add that directly to a project you deploy somewhere, but we don’t have something automagic for this, depends too much on where you want to deploy and with what server language etc.