fix: Use same protocol for proxy server URL

This commit is contained in:
Maxwell Gerber
2025-04-01 20:09:36 -07:00
parent ce1a9d3905
commit a414033354

View File

@@ -6,7 +6,7 @@ export const getMCPProxyAddress = (config: InspectorConfig): string => {
if (proxyFullAddress) { if (proxyFullAddress) {
return proxyFullAddress; return proxyFullAddress;
} }
return `http://${window.location.hostname}:${DEFAULT_MCP_PROXY_LISTEN_PORT}`; return `${window.location.protocol}//${window.location.hostname}:${DEFAULT_MCP_PROXY_LISTEN_PORT}`;
}; };
export const getMCPServerRequestTimeout = (config: InspectorConfig): number => { export const getMCPServerRequestTimeout = (config: InspectorConfig): number => {