File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/main/java/dev/lavalink/config/server Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 22
33import org .springframework .context .annotation .Bean ;
44import org .springframework .context .annotation .Configuration ;
5+ import org .springframework .security .config .Customizer ;
56import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
67import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
78import org .springframework .security .web .SecurityFilterChain ;
@@ -14,6 +15,7 @@ public class SecurityConfig {
1415 public SecurityFilterChain filterChain (HttpSecurity http ) throws Exception {
1516 return http
1617 .formLogin (form -> form .loginPage ("/login" ).permitAll ())
18+ .httpBasic (Customizer .withDefaults ())
1719 .authorizeHttpRequests (auth -> auth
1820 .requestMatchers ("/style.css" , "/lavalink.svg" ).permitAll ()
1921 .anyRequest ().authenticated ())
You can’t perform that action at this time.
0 commit comments