Skip to content

fix: secure CORS configuration (P0)#6

Merged
vuneumaaa merged 1 commit into
mainfrom
fix/cors-security
Mar 18, 2026
Merged

fix: secure CORS configuration (P0)#6
vuneumaaa merged 1 commit into
mainfrom
fix/cors-security

Conversation

@vuneumaaa
Copy link
Copy Markdown
Owner

Summary

Fixes CORS security vulnerability by removing wildcard origin and adding strict env-based configuration.

Changes

  • Removed allow_origins=["*"]
  • Added AAIP_ALLOWED_ORIGINS env variable
  • Enforced no wildcard in production
  • Added safe development defaults
  • Implemented fail-fast validation

Security

Prevents unauthorized cross-origin access in production.

Status

  • Debug: passed
  • Review: approved

Closes #1

@vuneumaaa vuneumaaa merged commit 25a3209 into main Mar 18, 2026
8 checks passed
@vuneumaaa vuneumaaa deleted the fix/cors-security branch March 18, 2026 03:41
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.

CORS Security

2 participants