提交 cc8d3815 编写于 作者: sq3536's avatar sq3536

免登

上级 3bdc51ea
...@@ -117,6 +117,12 @@ public class webSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -117,6 +117,12 @@ public class webSecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers("/"+downloadpath+"/**").permitAll() .antMatchers("/"+downloadpath+"/**").permitAll()
.antMatchers("/"+uploadpath).permitAll() .antMatchers("/"+uploadpath).permitAll()
.antMatchers("/"+previewpath+"/**").permitAll() .antMatchers("/"+previewpath+"/**").permitAll()
.antMatchers("/net-disk/download/**").permitAll()
.antMatchers("/net-disk/edit/**").permitAll()
.antMatchers("/net-disk/ocrview/**").permitAll()
.antMatchers("/net-disk/preview/**").permitAll()
.antMatchers("/net-disk/files/**").permitAll()
.antMatchers("/net-disk/wopi/**").permitAll()
// 所有请求都需要认证 // 所有请求都需要认证
.anyRequest().authenticated() .anyRequest().authenticated()
// 防止iframe 造成跨域 // 防止iframe 造成跨域
......
...@@ -116,7 +116,13 @@ public class DevBootSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -116,7 +116,13 @@ public class DevBootSecurityConfig extends WebSecurityConfigurerAdapter {
// 文件操作 // 文件操作
.antMatchers("/"+downloadpath+"/**").permitAll() .antMatchers("/"+downloadpath+"/**").permitAll()
.antMatchers("/"+uploadpath).permitAll() .antMatchers("/"+uploadpath).permitAll()
.antMatchers("/"+previewpath+"/**").permitAll(); .antMatchers("/"+previewpath+"/**").permitAll()
.antMatchers("/net-disk/download/**").permitAll()
.antMatchers("/net-disk/edit/**").permitAll()
.antMatchers("/net-disk/ocrview/**").permitAll()
.antMatchers("/net-disk/preview/**").permitAll()
.antMatchers("/net-disk/files/**").permitAll()
.antMatchers("/net-disk/wopi/**").permitAll();
for (String excludePattern : excludesPattern) { for (String excludePattern : excludesPattern) {
......
...@@ -122,6 +122,11 @@ public class apiSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -122,6 +122,11 @@ public class apiSecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers("/"+downloadpath+"/**").permitAll() .antMatchers("/"+downloadpath+"/**").permitAll()
.antMatchers("/"+uploadpath).permitAll() .antMatchers("/"+uploadpath).permitAll()
.antMatchers("/"+previewpath+"/**").permitAll() .antMatchers("/"+previewpath+"/**").permitAll()
.antMatchers("/net-disk/download/**").permitAll()
.antMatchers("/net-disk/edit/**").permitAll()
.antMatchers("/net-disk/ocrview/**").permitAll()
.antMatchers("/net-disk/preview/**").permitAll()
.antMatchers("/net-disk/files/**").permitAll()
.antMatchers("/net-disk/wopi/**").permitAll(); .antMatchers("/net-disk/wopi/**").permitAll();
for (String excludePattern : excludesPattern) { for (String excludePattern : excludesPattern) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册