This commit is contained in:
Hymmel 2026-01-22 11:17:16 +01:00
parent 917ff52c0c
commit 06967a905b

View file

@ -37,6 +37,7 @@ public class SecurityConfig {
.authorizeHttpRequests(auth -> auth
.requestMatchers("/api/auth/**", "/api/rooms/**").permitAll()
.requestMatchers(org.springframework.http.HttpMethod.POST, "/api/auth/register").permitAll() // Explicitly permit POST register
.requestMatchers(org.springframework.http.HttpMethod.OPTIONS, "/**").permitAll() // Permit all preflight requests
.anyRequest().authenticated()
)
.httpBasic(basic -> {});