Upgrade Babel runtime for optional chaining support - #4
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
| app = FastAPI(title="Async Chat Platform") | ||
|
|
||
| app.add_middleware( | ||
| CORSMiddleware, | ||
| allow_origins=settings.allowed_origins, | ||
| allow_credentials=True, |
There was a problem hiding this comment.
CORS defaults prevent the server from starting
The FastAPI app registers CORSMiddleware with allow_credentials=True but settings.allowed_origins defaults to ['*'] (see Settings.allowed_origins). Starlette raises ValueError: Cannot use allow_credentials=True with allow_origins=['*'] for this combination, so the application crashes on startup unless the environment variable is overridden. Provide explicit origins or disable credentials when using the wildcard to avoid a boot‑time failure.
Useful? React with 👍 / 👎.
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_68e2dc54ec58832eac05775e82694a53