diff --git a/sdk/common/src/main/java/io/dataease/utils/WhitelistUtils.java b/sdk/common/src/main/java/io/dataease/utils/WhitelistUtils.java index 6c84d72b3b82334364bac139d2bf747cc1804d9d..bc145b9654a0ccc6120230abf58131daca4abbdd 100644 --- a/sdk/common/src/main/java/io/dataease/utils/WhitelistUtils.java +++ b/sdk/common/src/main/java/io/dataease/utils/WhitelistUtils.java @@ -46,6 +46,7 @@ public class WhitelistUtils { if (StringUtils.startsWith(requestURI, getContextPath())) { requestURI = requestURI.replaceFirst(getContextPath(), ""); } + requestURI = StringUtils.prependIfMissing(requestURI, "/"); if (StringUtils.startsWith(requestURI, AuthConstant.DE_API_PREFIX)) { requestURI = requestURI.replaceFirst(AuthConstant.DE_API_PREFIX, ""); }