fix: replace wildcard CORS default with explicit localhost origins #468

Closed
kimi wants to merge 0 commits from kimi/issue-462 into main
Collaborator

Summary

  • Default cors_origins changed from ["*"] to explicit localhost origins
  • _get_cors_origins() now strips wildcard entries in production mode with a warning
  • Prevents unintentional open CORS in production deployments

Fixes #462

## Summary - Default `cors_origins` changed from `["*"]` to explicit localhost origins - `_get_cors_origins()` now strips wildcard entries in production mode with a warning - Prevents unintentional open CORS in production deployments Fixes #462
kimi added 1 commit 2026-03-19 19:00:19 +00:00
fix: replace wildcard CORS default with explicit localhost origins
All checks were successful
Tests / lint (pull_request) Successful in 4s
Tests / test (pull_request) Successful in 1m14s
9578330c87
The cors_origins setting defaulted to ["*"], which passed through
unchanged in production (non-debug) mode. Now defaults to explicit
localhost origins, and _get_cors_origins() strips any wildcards in
production with a warning.

Fixes #462

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Timmy closed this pull request 2026-03-19 19:01:54 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#468