mirror of
https://github.com/dataease/dataease.git
synced 2026-05-18 17:58:11 +08:00
feat(图表): 地图支持自定义区域
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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/")
|
||||
|
||||
Reference in New Issue
Block a user