Skip to content

frontend: add dev proxy & CORS config for local cauweb <-> Python API #132

Description

@ayushkrtiwari

Goal

Make local dev experience smooth: cauweb dev server proxies API calls to Python backend to avoid CORS and auth friction.

Tasks

  • Add proxy config (Vite/webpack devServer proxy) for /api/* -> http://localhost:8000.
  • Add example .env.local with API_BASE, WS_URL, and explain env usage.
  • Add CI check to ensure frontend doesn't use hardcoded backend URLs.

Acceptance criteria

  • Running npm run dev with backend running allows cauweb to call APIs without CORS errors.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Semver:patchRepresents bug fixes in subversionsType:Easyintern worksType:Mediumjunior developers talks

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions