negro
This commit is contained in:
parent
917ff52c0c
commit
06967a905b
1 changed files with 1 additions and 0 deletions
|
|
@ -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 -> {});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue