File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
crates/apollo-mcp-server/src Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,11 @@ impl Default for CorsConfig {
47
47
match_origins : Vec :: new ( ) ,
48
48
allow_any_origin : false ,
49
49
allow_credentials : false ,
50
- allow_methods : vec ! [ "GET" . to_string( ) , "POST" . to_string( ) ] ,
50
+ allow_methods : vec ! [
51
+ "GET" . to_string( ) ,
52
+ "POST" . to_string( ) ,
53
+ "DELETE" . to_string( ) , // Clients that no longer need a particular session SHOULD send an HTTP DELETE to explicitly terminate the session
54
+ ] ,
51
55
allow_headers : vec ! [
52
56
"content-type" . to_string( ) ,
53
57
"mcp-protocol-version" . to_string( ) , // https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#protocol-version-header
@@ -223,7 +227,7 @@ mod tests {
223
227
assert ! ( !config. allow_credentials) ;
224
228
assert_eq ! (
225
229
config. allow_methods,
226
- vec![ "GET" . to_string( ) , "POST" . to_string( ) ]
230
+ vec![ "GET" . to_string( ) , "POST" . to_string( ) , "DELETE" . to_string ( ) ]
227
231
) ;
228
232
assert_eq ! (
229
233
config. allow_headers,
Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ mod test {
153
153
allow_methods: [
154
154
"GET",
155
155
"POST",
156
+ "DELETE",
156
157
],
157
158
allow_headers: [
158
159
"content-type",
You can’t perform that action at this time.
0 commit comments