This commit is contained in:
2026-04-30 18:53:06 +08:00
parent 2adefb5207
commit 388a34837f
4 changed files with 14 additions and 7 deletions
@@ -98,7 +98,8 @@ public class WebSecurityConfig {
http.authorizeHttpRequests(auth -> {
// Publicly accessible
auth.requestMatchers(
"/login/**", "/initUserData",
"/login/**", "/register", "/registerDo", "/initUserData",
"/", "/main", "/index", "/getdiscussionsbyid",
// SpringDoc OpenAPI UI and spec endpoint (developer tools, no sensitive data)
"/swagger-ui/**", "/swagger-ui.html", "/v3/api-docs/**"
).permitAll();