Merge pull request #247 from max-stytch/fix/use-https-protocol

fix: Use same protocol for proxy server URL
This commit is contained in:
Cliff Hall
2025-04-03 14:48:02 -04:00
committed by GitHub

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 => {