fix: Use same protocol for proxy server URL

This commit is contained in:
Maxwell Gerber 2025-04-01 20:09:36 -07:00
commit a414033354
No known key found for this signature in database
GPG key ID: BB9C1A99266069B0

View file

@ -6,7 +6,7 @@ export const getMCPProxyAddress = (config: InspectorConfig): string => {
if (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 => {