Claude Desktop 3P mode — inferenceCustomHeaders not applied to HTTP requests
Status Fixed / completed
Reported on v2.1.149
Maintainer reply None cached
Activity 6 comments · opened May 27, 2026 · closed Jun 3, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
- App version: 1.9255.2 / Claude Code VM 2.1.149.0d3
- Mode: Third-party inference (custom-3p, provider: gateway)
- Symptom: 401 from APIM gateway — Ocp-Apim-Subscription-Key header set in
inferenceCustomHeaders is not sent with API requests
What Should Happen?
It was able to connect without issues.
Error Messages/Logs
Try sending your message again. If it keeps happening, share feedback so we can investigate.
Failed to authenticate. API Error: 401 Access denied due to missing subscription key. Make sure to include subscription key when making requests to an API.
You can restart the conversation from an earlier message.
Steps to Reproduce
Configure a gateway with inferenceCustomHeaders containing
Ocp-Apim-Subscription-Key — the header is ignored
- Not an infra issue: Same request via curl with the header works perfectly
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
previous version
Claude Code Version
Claude 1.9255.2 (1dc8f7) 2026-05-27T01:57:20.000Z
Platform
Other
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
6 Comments
遇到了一样的问题。
I also wanted to report this error in relation to the macos desktop app. The issue description is correct.
I checked and the macos app version Claude 1.8555.0 (8245b7) 2026-05-21T05:49:11.000Z _does not have this bug_.
Hey , any update on this ?
This is affecting everyone who is trying to use customer headers in our API manager.
If you use the TEST option at the app is successfully connected but when creating a prompt it fails.
As explained if I curl the API it works and also Claude Code CLI works well without any issues with the same custom headers.
It seems that version Claude 1.10628.0 (b4f860) 2026-06-02T05:48:19.000Z has fixed this.
YESSSS thanks!
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.