diff --git a/web/src/Setting.js b/web/src/Setting.js index 05dc800..8aef377 100644 --- a/web/src/Setting.js +++ b/web/src/Setting.js @@ -27,7 +27,7 @@ export let CasdoorSdk; export function initServerUrl() { const hostname = window.location.hostname; - if (hostname === "localhost") { + if (hostname === "localhost" || hostname === "127.0.0.1") { ServerUrl = `http://${hostname}:14000`; } }