### 影响范围 协议转换 / 代理 ### 当前行为 <img width="1102" height="608" alt="Image" src="https://github.com/user-attachments/assets/e074e695-5c68-4a29-92a0-7b18dccf1866" /> 使用chatgpt中转站api,换成2.0 新网关后报错,一直连不上,换回旧版供应商配置一切正常。 ### 预期行为 切换2.0之后期望正常连接chatgpt中转站api使用. ### 复现步骤 使用chatgpt中转站api,换成2.0 新网关后报错,一直连不上,换回旧版供应商配置一切正常。 ### 日志 / 配置片段 ```shell HTTP 403 · type=upstream_error · code=403: {"error":{"message":"This account only allows Codex official clients","type":"forbidden_error"}}event: response.failed data: {"type":"response.failed","sequence_number":0,"response":{"id":"resp_eba880e7c9d64e8d8a0acb0ee2db8c96","object":"response","created_at":1793291401,"model":"gpt-6.1-sol","status":"failed","output":[],"error":{"code":"upstream_error","message":"Upstream request failed"}}} ``` ### Codex++ 版本 V2.1.2 ### 系统 Windows ### 提交前确认 - [x] 我已经脱敏了 API Key、Token、账号等敏感信息。 - [x] 我已经确认这是当前最新版仍然存在的问题。
Activity
fix(gateway): Codex 经网关时把 originator、x-codex-* 等客户端身份头原样带给 Responses …
BigPizzaV3 commentedon Oct 29, 2026
感谢反馈,原因找到了:开启了「仅允许 Codex 官方客户端」的中转站,除了看 User-Agent /
originator,还要求请求里带有 Codex 自己的x-codex-*请求头。2.0 网关转发时丢掉了这些头,所以被判定不是官方客户端,返回 403。已修复,会随下个版本发布:Codex 经网关请求时,会把这些客户端身份头原样转给上游(Key、Cookie 等不会透传)。修复发布前,可以先切回「旧版供应商配置」直连这个中转站使用。
BigPizzaV3 commentedon Oct 29, 2026
已随 2.1.3 发布:https://github.com/BigPizzaV3/CodexPlusPlus/releases/tag/v2.1.3
Codex 经网关请求时会把
originator、x-codex-*等客户端身份头原样转给上游,开了「仅允许 Codex 官方客户端」的中转站不再返回 403。