Skip to content

fix: Added backend proxy in Vite to avoid CORS error#21

Open
basuri01 wants to merge 1 commit into
bsoc-bitbyte:mainfrom
basuri01:proxy
Open

fix: Added backend proxy in Vite to avoid CORS error#21
basuri01 wants to merge 1 commit into
bsoc-bitbyte:mainfrom
basuri01:proxy

Conversation

@basuri01

@basuri01 basuri01 commented Jun 11, 2026

Copy link
Copy Markdown

What

Added backend proxy in vite.config.js to fix CORS error when running frontend on port other than 5173.

Fixes #11

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Proof of work

image

Checklist

  • I claimed this issue before starting work
  • Branch name follows the convention (feature/, fix/, docs/)
  • Commits follow Conventional Commits format
  • CI is passing (lint, prettier, build)
  • I have self-reviewed my own code
  • Any non-obvious decisions are explained with a comment in the code

@basuri01 basuri01 changed the title fix: replace hardcoded frontend url with backend proxy fix: Added backend proxy in Vite to avoid CORS error Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Getting CORS error in dev login.

1 participant