Skip to content

missing origin header in requests #574

Open
@symdeb

Description

@symdeb

Describe the bug
no origin header in request

To Reproduce
Send connect request using inspector

Expected behavior
an origin header in the request

Logs

Request Received at 2025-06-30T04:53:43+00:00

method:POST
headers:
host:localhost
connection:keep-alive
accept:application/json, text/event-stream
authorization:Bearer 123456
content-type:application/json
accept-language:*
sec-fetch-mode:cors
user-agent:node
accept-encoding:gzip, deflate
content-length:205
URL: /api/mcp/mcp
Query:
Query Parameters:
contents:

Additional context
MCP spec: Servers MUST validate the Origin header on all incoming connections to prevent DNS rebinding attacks
Linux Apache PHP server

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions