Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically configure CORS using based on allowed origins from the environment variables #24

Closed
coderoyalty opened this issue Jan 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@coderoyalty
Copy link
Owner

Instead of configuring the accepted origins for CORS, let's load these supported origins from the environment.

coderoyalty added a commit that referenced this issue Jan 18, 2024
- Update CORS configuration in app.ts to dynamically handle allowed origins.
- Introduce the allowedOrigins field in config.ts.
- Read allowed origins from the environment variable ALLOWED_ORIGINS.
- Improve error handling to reject requests from disallowed origins.

Closes: Dynamically configure CORS using based on allowed origins from the environment variables #24
@coderoyalty coderoyalty added the enhancement New feature or request label Jan 18, 2024
coderoyalty added a commit that referenced this issue Jan 18, 2024
- Update CORS configuration in app.ts to dynamically handle allowed origins.
- Introduce the allowedOrigins field in config.ts.
- Read allowed origins from the environment variable ALLOWED_ORIGINS.
- Improve error handling to reject requests from disallowed origins.

Closes: Dynamically configure CORS using based on allowed origins from the environment variables #24
@coderoyalty coderoyalty self-assigned this Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant