feat: optimize source project pages and SEO
This commit is contained in:
@@ -97,6 +97,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
||||
// 过滤请求
|
||||
.authorizeRequests()
|
||||
.antMatchers("/profile/**").permitAll()
|
||||
// Public sitemap must be crawlable without a token.
|
||||
.antMatchers(HttpMethod.GET, "/sitemap.xml").permitAll()
|
||||
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
|
||||
.antMatchers("/login", "/register", "/captchaImage").anonymous()
|
||||
// 首页获取文章信息 允许匿名访问
|
||||
|
||||
Reference in New Issue
Block a user