|
|
@ -37,7 +37,7 @@ public class SecurityConfig {
|
|
|
|
.csrf(AbstractHttpConfigurer::disable) // 禁用CSRF
|
|
|
|
.csrf(AbstractHttpConfigurer::disable) // 禁用CSRF
|
|
|
|
.cors(Customizer.withDefaults())
|
|
|
|
.cors(Customizer.withDefaults())
|
|
|
|
.authorizeHttpRequests(auth -> auth
|
|
|
|
.authorizeHttpRequests(auth -> auth
|
|
|
|
.requestMatchers("/auth/login","/agent/streamChat","/livetalking/chatCallBack","/**").permitAll()
|
|
|
|
.requestMatchers("/auth/login","/agent/streamChat","/livetalking/chatCallBack").permitAll()
|
|
|
|
.anyRequest().authenticated()
|
|
|
|
.anyRequest().authenticated()
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.sessionManagement(session -> session
|
|
|
|
.sessionManagement(session -> session
|
|
|
|