Skip to content

Custom headers are not sent #1294

@llamafilm

Description

@llamafilm

Inspector Version
0.21.2

Describe the bug
Custom headers are not sent. I'm not using authentication, but I need to set this header for my proxy to work properly.

To Reproduce

  1. Configure an HTTP server with type=direct
  2. In the Authentication section, add a custom header called x-custom1 without configuring any other authentication options
  3. Click Connect
  4. Observe headers with tcpdump

Expected behavior
The x-custom1 header should be sent

Actual behavior
Tcpdump shows the custom header name has been added to access-control-request-headers, but the custom header itself is not sent:

.X......OPTIONS /mcp HTTP/1.1
Host: localhost:2002
Connection: keep-alive
Accept: */*
Access-Control-Request-Method: POST
Access-Control-Request-Headers: content-type,x-custom-auth-headers,x-custom1
Origin: http://localhost:6274
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
Sec-Fetch-Dest: empty
Referer: http://localhost:6274/
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: en-US,en;q=0.9

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: MacOS
  • Browser: Brave

Additional context

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions