Integrations
Frontend integration recipes
These recipes handle loading, error, and freshness states when fetching public APIs in browser apps. Each integration starts by testing whether the target API requires a proxy at all.
Frameworks and static hosts
Implementation patterns for browser environments and frontend build tools.
- Fixing your Vite proxy setup for productionResolve failed API requests after build by replacing the Vite development server proxy with production options.Read the recipe
- Handling React fetch CORS in browser applicationsFetch public data with full state transitions and add CORS fallback handling only where required.Read the recipe
- Handle Next.js CORS across server and client componentsDetermine whether to fetch in Server Components or Client Components, with working patterns for both runtimes.Read the recipe
- Connect a static website to live APIs without a backendLoad live third-party data on HTML sites using client-side fetch, retry policies, and origin verification.Read the recipe
Debugging a failure instead?