Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

feat: Add additional allowed origin for CORS in main.go#10

Merged
RandithaK merged 1 commit intomainfrom
dev
Nov 8, 2025
Merged

feat: Add additional allowed origin for CORS in main.go#10
RandithaK merged 1 commit intomainfrom
dev

Conversation

@RandithaK
Copy link
Copy Markdown
Member

@RandithaK RandithaK commented Nov 8, 2025

Summary by CodeRabbit

  • Chores
    • Updated cross-origin resource sharing configuration to support an additional deployment environment.

@RandithaK RandithaK merged commit 9fcee1b into main Nov 8, 2025
3 checks passed
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Nov 8, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

A CORS configuration update in the gateway service to permit requests from an additional origin endpoint, expanding allowed sources from the local development environment to include a production deployment domain.

Changes

Cohort / File(s) Summary
CORS origin allowlist expansion
cmd/gateway/main.go
Added https://techtorque.vercel.app to the list of allowed CORS origins alongside the existing http://localhost:3000 entry

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

  • Straightforward configuration change with no logic modifications
  • Single-file change with minimal scope

Poem

🐰 A gateway opens wide today,
To vercel clouds so far away,
Localhost and production aligned,
CORS boundaries gently redefined!

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3cbfd5a and c7ce6ff.

📒 Files selected for processing (1)
  • cmd/gateway/main.go (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai bot mentioned this pull request Nov 15, 2025
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant