Browse Source

update server/src/main/java/cn/keking/config/WebConfig.java.

加入安全限制

Signed-off-by: 高雄 <admin@cxcp.com>
pull/76/head
高雄 2 years ago committed by Gitee
parent
commit
60d9ef7069
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
  1. 1
      server/src/main/java/cn/keking/config/WebConfig.java

1
server/src/main/java/cn/keking/config/WebConfig.java

@ -43,6 +43,7 @@ public class WebConfig implements WebMvcConfigurer {
Set<String> filterUri = new HashSet<>();
filterUri.add("/onlinePreview");
filterUri.add("/picturesPreview");
filterUri.add("/getCorsFile");
TrustHostFilter filter = new TrustHostFilter();
FilterRegistrationBean<TrustHostFilter> registrationBean = new FilterRegistrationBean<>();
registrationBean.setFilter(filter);

Loading…
Cancel
Save