From 60d9ef7069d1a7980114718fba24a17aadd1a2d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E9=9B=84?= Date: Mon, 20 Mar 2023 07:39:14 +0000 Subject: [PATCH] =?UTF-8?q?update=20server/src/main/java/cn/keking/config/?= =?UTF-8?q?WebConfig.java.=20=E5=8A=A0=E5=85=A5=E5=AE=89=E5=85=A8=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 高雄 --- server/src/main/java/cn/keking/config/WebConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main/java/cn/keking/config/WebConfig.java b/server/src/main/java/cn/keking/config/WebConfig.java index 8c9aee61..dd67070d 100644 --- a/server/src/main/java/cn/keking/config/WebConfig.java +++ b/server/src/main/java/cn/keking/config/WebConfig.java @@ -43,6 +43,7 @@ public class WebConfig implements WebMvcConfigurer { Set filterUri = new HashSet<>(); filterUri.add("/onlinePreview"); filterUri.add("/picturesPreview"); + filterUri.add("/getCorsFile"); TrustHostFilter filter = new TrustHostFilter(); FilterRegistrationBean registrationBean = new FilterRegistrationBean<>(); registrationBean.setFilter(filter);