Tell clients that they are allowed to use Mcp-Session-Id header (#165)

This commit is contained in:
Tobias Nyholm 2025-11-30 11:00:51 +01:00 • committed by GitHub
commit 48634bd8c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,6 +57,7 @@ class StreamableHttpTransport extends BaseTransport implements TransportInterfac
'Access-Control-Allow-Origin' => '*',
'Access-Control-Allow-Methods' => 'GET, POST, DELETE, OPTIONS',
'Access-Control-Allow-Headers' => 'Content-Type, Mcp-Session-Id, Mcp-Protocol-Version, Last-Event-ID, Authorization, Accept',
'Access-Control-Expose-Headers' => 'Mcp-Session-Id',
], $corsHeaders);
}