feat(图表): 地图支持自定义区域

This commit is contained in:
wisonic
2024-11-27 11:58:58 +08:00
parent a6847abeb5
commit bc4092ce9a
25 changed files with 1358 additions and 119 deletions

View File

@@ -18,7 +18,7 @@ public class TokenFilter implements Filter {
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
HttpServletRequest request = (HttpServletRequest) servletRequest;
String method = request.getMethod();
if (!StringUtils.equalsAny(method, "GET", "POST", "OPTIONS")) {
if (!StringUtils.equalsAny(method, "GET", "POST", "OPTIONS", "DELETE")) {
HttpServletResponse res = (HttpServletResponse) servletResponse;
res.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);
return;

View File

@@ -33,7 +33,7 @@ public class CorsConfig implements WebMvcConfigurer {
.allowedOrigins(originList.toArray(new String[0]))
.allowedHeaders("*")
.maxAge(3600)
.allowedMethods("GET", "POST");
.allowedMethods("GET", "POST", "DELETE");
}
public void addAllowedOrigins(List<String> origins) {

View File

@@ -25,6 +25,7 @@ public class CacheConstant {
public static class CommonCacheConstant {
public static final String WORLD_MAP_CACHE = "de_v2_world_map";
public static final String CUSTOM_GEO_CACHE = "de_v2_custom_geo";
public static final String RSA_CACHE = "de_v2_rsa";
public static final String PER_MENU_ID_CACHE = "de_v2_per_menu_id";
}

View File

@@ -68,6 +68,7 @@ public class WhitelistUtils {
|| StringUtils.startsWithAny(requestURI, "/xpackComponent/content")
|| StringUtils.startsWithAny(requestURI, "/xpackComponent/pluginStaticInfo")
|| StringUtils.startsWithAny(requestURI, "/geo/")
|| StringUtils.startsWithAny(requestURI, "/customGeo/")
|| StringUtils.startsWithAny(requestURI, "/websocket")
|| StringUtils.startsWithAny(requestURI, "/map/")
|| StringUtils.startsWithAny(requestURI, "/oauth2/")