Home

Blog

Home

Blog

2 articles tagged with: #React

Blocked by CORS in FastAPI? Here's How to Fix It

November 2, 2025

Blocked by CORS in FastAPI? Here's How to Fix It

Solving Cross-Origin Errors Between Your Frontend and FastAPI

Fix frustrating CORS errors in FastAPI. This guide explains what Cross-Origin Resource Sharing is and shows how to use CORSMiddleware to connect your API to a React or other frontend application securely.

Read More...

Serving a React Frontend Application with FastAPI

July 30, 2025

Serving a React Frontend Application with FastAPI

A Guide to Serving Your Frontend and Backend from a Single Application

Learn how to serve a single page application (like React or Vue) directly from your FastAPI backend. This guide covers handling client-side routing, middleware order, CORS, and using a multi-stage Dockerfile for a unified deployment.

Read More...

Contact Me

Have a project in mind? Send me an email at hello@davidmuraya.com and let's bring your ideas to life. I am always available for exciting discussions.

© 2025 David Muraya. All rights reserved.