Skip to content

Diya 🔥 fix(login): Fixed login issues#2182

Merged
one-community merged 1 commit into
developmentfrom
Diya_Fix_LoginIssues
Apr 27, 2026
Merged

Diya 🔥 fix(login): Fixed login issues#2182
one-community merged 1 commit into
developmentfrom
Diya_Fix_LoginIssues

Conversation

@DiyaWadhwani
Copy link
Copy Markdown
Contributor

@DiyaWadhwani DiyaWadhwani commented Apr 27, 2026

Description

Fixes login and API failures caused by CORS rejecting requests from the deployed frontend origins. The allowedOrigins set in cors.js only contained localhost entries, blocking all requests from the dev and production deployments.

Related PRS (if any):

None

Main changes explained:

How to test:

  1. Check out current branch and deploy to dev
  2. Go to https://dev.highestgood.com/login
  3. Log in with valid credentials — verify login succeeds with no CORS error
  4. Go to https://highestgoodnetwork.netlify.app/login
  5. Log in with valid credentials — verify login succeeds with no CORS error
  6. Verify API calls throughout the app work normally (dashboard loads, data fetches, etc.)

Note:

This is a backend-only change. The Sentry issue HGN-MT-DEV-HEROKU-MMP (2K events, escalating) confirmed the missing origin. Only the origin is needed — no trailing slash or path.

@one-community one-community merged commit 48401a1 into development Apr 27, 2026
2 checks passed
@one-community one-community changed the title Diya fix(login): Fixed login issues Diya 🔥 fix(login): Fixed login issues Apr 27, 2026
@sonarqubecloud
Copy link
Copy Markdown

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