@modelcontextprotocol/sdk
Advanced tools
Comparing version
@@ -505,3 +505,7 @@ "use strict"; | ||
if (!response) { | ||
throw new Error(`CORS error trying to load ${type === 'oauth' ? 'OAuth' : 'OpenID provider'} metadata from ${endpointUrl}`); | ||
/** | ||
* CORS error occurred - don't throw as the endpoint may not allow CORS, | ||
* continue trying other possible endpoints | ||
*/ | ||
continue; | ||
} | ||
@@ -508,0 +512,0 @@ if (!response.ok) { |
@@ -486,3 +486,7 @@ import pkceChallenge from "pkce-challenge"; | ||
if (!response) { | ||
throw new Error(`CORS error trying to load ${type === 'oauth' ? 'OAuth' : 'OpenID provider'} metadata from ${endpointUrl}`); | ||
/** | ||
* CORS error occurred - don't throw as the endpoint may not allow CORS, | ||
* continue trying other possible endpoints | ||
*/ | ||
continue; | ||
} | ||
@@ -489,0 +493,0 @@ if (!response.ok) { |
{ | ||
"name": "@modelcontextprotocol/sdk", | ||
"version": "1.17.1", | ||
"version": "1.17.2", | ||
"description": "Model Context Protocol implementation for TypeScript", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
122454
0.01%7512699
0