Skip to content

Commit 8ce435f

Browse files
Haaroleangit-halinka
authored andcommitted
BE: SR: Fix HTTP 400 with slashes in schema name (kafbat#849)
1 parent b66ab17 commit 8ce435f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package io.kafbat.ui.config;
2+
3+
import org.springframework.context.annotation.Bean;
4+
import org.springframework.context.annotation.Configuration;
5+
import org.springframework.security.web.server.firewall.StrictServerWebExchangeFirewall;
6+
7+
@Configuration
8+
public class GeneralSecurityConfig {
9+
10+
@Bean
11+
public StrictServerWebExchangeFirewall strictServerWebExchangeFirewall() {
12+
StrictServerWebExchangeFirewall firewall = new StrictServerWebExchangeFirewall();
13+
firewall.setAllowUrlEncodedSlash(true);
14+
return firewall;
15+
}
16+
17+
}

0 commit comments

Comments
 (0)