Skip to content

Revert CORS allowed origin update for invoice-iq-gamma#11

Open
amar-295 wants to merge 3 commits intoGURUDAS-DEV:masterfrom
amar-295:master
Open

Revert CORS allowed origin update for invoice-iq-gamma#11
amar-295 wants to merge 3 commits intoGURUDAS-DEV:masterfrom
amar-295:master

Conversation

@amar-295
Copy link
Copy Markdown
Contributor

Problem

The backend CORS whitelist pointed to an old Vercel URL (invoiceiq-two.vercel.app)
that no longer matches the actual production frontend (invoice-iq-gamma.vercel.app).

This silently blocked every API call from production users — login, dashboard,
deliveries, and all other features were non-functional.

Fix

Updated allowedOrigins in backend/index.ts:

Impact

  • ✅ Production API calls will work after backend redeploys
  • ✅ Local dev unaffected (localhost:3000 still whitelisted)
  • No schema, logic, or dependency changes

Copilot AI review requested due to automatic review settings March 25, 2026 15:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

@amar-295 is attempting to deploy a commit to the gurudas-bhardwaj's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

2 participants