Open
Description
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