瀏覽代碼

fix: minor fixes.

ddch@smail.nju.edu.cn 5 年之前
父節點
當前提交
8f35c40d77
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      web/src/main/java/cn/seecoder/web/infrastructure/config/WebSecurityConfig.java

+ 0 - 2
web/src/main/java/cn/seecoder/web/infrastructure/config/WebSecurityConfig.java

@@ -53,8 +53,6 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
                 .addFilterBefore(filter, UsernamePasswordAuthenticationFilter.class)
 
                 .authorizeRequests()
-                // 为保证风格一致,以及保证鉴权完备,拒绝所有以 / 结尾的请求,只有无 / 结尾的请求才可被访问
-                .antMatchers("/**/").denyAll()
                 // API Test Controller
                 .antMatchers(HttpMethod.GET, "/test/list/{projectId}").access("@authTools.checkProjOwnership(#projectId)")
                 .antMatchers(HttpMethod.GET, "/test/delete/{testId}").access("@authTools.checkTestOwnership(#testId)")