mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-11-25 19:33:27 +08:00
- Replace the wildcard Access-Control-Allow-Headers value with an explicit list covering Authorization, Content-Type, and the API key and Anthropic headers the API accepts, since Fetch treats Authorization as a non-wildcard request-header name. - Echo requested headers on preflight responses so arbitrary custom client headers keep working without widening allowed origins or enabling credentials. - Add real-server preflight regression tests for the models, chat completions, alternative credential, and Anthropic header cases. Closes: #6999