TaxHacker
TaxHacker copied to clipboard
fix(security): restrict CORS on progress SSE endpoint (#87)
Summary
- Removes the wildcard
Access-Control-Allow-Origin: *header from the progress SSE route - Keeps the streaming headers required for same-origin
EventSourceusage
Motivation
The progress endpoint returns user-scoped progress events for authenticated sessions. A wildcard CORS policy allows any origin to read those event-stream responses, which is broader than needed since the UI already connects via same-origin /api/progress/....
Closes #87.
Test plan
- [ ] Start the app and trigger a flow that uses progress updates (file analysis or export)
- [ ] Confirm progress updates still stream correctly in the UI
- [ ] Verify the response no longer includes
Access-Control-Allow-Origin: *
Made with Cursor