S
SolidJS16mo ago
dmayo2

[solved] Tutorial: server side routing for remote API call with keys

Hello. So, my app is coming along and I'm ready to start requesting APIs at openai.com.
Can any one point me to a good tutorial that explains, and shows, how my browser code can call a server page that will actually make the API call and return the data to the browser. Currently I'm calling APIs with Supabase. I plan on hosting with Netlify. Thanks for any suggestions.
2 Replies
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
dmayo2
dmayo216mo ago
Thanks. So, createResource() can get the initial value from ssr. That page will hold the keys and make the fetch, and return it to the createResource that called it. Sound about right? How about the server side page? Do I have to use NodeJS? Ok, I have everything working with a node/express server. However, I'm getting that dreaded CORS.