mirror of
https://github.com/dataease/dataease.git
synced 2026-05-23 05:48:13 +08:00
fix(X-Pack): apisix添加动态路径后重启服务会被重置
This commit is contained in:
@@ -73,4 +73,15 @@ public class WhitelistUtils {
|
||||
|| StringUtils.startsWithAny(requestURI, "/communicate/image/")
|
||||
|| StringUtils.startsWithAny(requestURI, "/communicate/down/");
|
||||
}
|
||||
|
||||
public static String getBaseApiUrl(String redirect_uri) {
|
||||
if (StringUtils.endsWith(redirect_uri, "/")) {
|
||||
redirect_uri = redirect_uri.substring(0, redirect_uri.length() - 1);
|
||||
}
|
||||
String contextPath = WhitelistUtils.getContextPath();
|
||||
if (StringUtils.isNotBlank(contextPath)) {
|
||||
redirect_uri += contextPath;
|
||||
}
|
||||
return redirect_uri + AuthConstant.DE_API_PREFIX + "/";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user