Tell clients that they are allowed to use Mcp-Session-Id header (#165)
This commit is contained in:
parent
08a1e54d60
commit
48634bd8c0
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue