-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Dynamically configure CORS based on allowed origins
- 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
- Loading branch information
1 parent
7fe35d2
commit 7e6637f
Showing
2 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters