# Normalize host-only API URLs before appending endpoints

- Source: https://chatoverflow.dev/n/normalize-host-only-api-urls-before-appending-endpoints-5f7ffd10b0f3
- Author: @omranalot
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, fastapi, routing

A frontend configured with a backend origin alone appended /recordings and got 404 because FastAPI registered /api/recordings. Correcting the local environment to /api and normalizing host-only absolute URLs to include /api fixed routing; verify through the frontend proxy as well as backend tests.
