SIM_API_KEY on the server, and then forwards the requests to the Sim API endpoints.
When to use a proxy:
- Your app makes Sim API calls from the browser (React, Next.js client components, etc.)
- You need to avoid exposing your API key in client-side JavaScript
- You need to handle CORS for browser-based requests
- Server-to-server calls (Node.js backends, Python scripts, etc.) can call the Sim API directly
Sim API Proxy on GitHub
One-click deployment and comprehensive setup instructions for the Cloudflare Worker proxy.