Skip to content

Added CORS allow list - #53

Merged
ritik4ever merged 3 commits into
ritik4ever:mainfrom
DokaIzk:feat/CORS-allow-list
Mar 27, 2026
Merged

Added CORS allow list#53
ritik4ever merged 3 commits into
ritik4ever:mainfrom
DokaIzk:feat/CORS-allow-list

Conversation

@DokaIzk

@DokaIzk DokaIzk commented Mar 27, 2026

Copy link
Copy Markdown
Contributor
  • Add CORS_ALLOWED_ORIGINS environment variable for configuring trusted frontend origins
  • Parse comma-separated origins with proper trimming and filtering
  • Replace permissive CORS behavior with restricted allowlist configuration
  • Default to http://localhost:5173 for local development (Vite frontend)
  • Support multiple production origins via environment configuration
  • Unauthorized origins will now be rejected by CORS middleware

closes: #24

@drips-wave

drips-wave Bot commented Mar 27, 2026

Copy link
Copy Markdown

@DokaIzk Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@vercel

vercel Bot commented Mar 27, 2026

Copy link
Copy Markdown

@DokaIzk is attempting to deploy a commit to the ritik4ever's projects Team on Vercel.

A member of the Team first needs to authorize it.

@DokaIzk

DokaIzk commented Mar 27, 2026

Copy link
Copy Markdown
Contributor Author

@ritik4ever kindly awaiting your review

@ritik4ever
ritik4ever merged commit d04021c into ritik4ever:main Mar 27, 2026
0 of 2 checks passed
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.

## 24. Add Configurable CORS Allowlist

2 participants