We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f3ca4c commit 958bb06Copy full SHA for 958bb06
api/src/main/java/io/kafbat/ui/config/ReadOnlyModeFilter.java
@@ -33,7 +33,8 @@ public class ReadOnlyModeFilter implements WebFilter {
33
@NotNull
34
@Override
35
public Mono<Void> filter(ServerWebExchange exchange, @NotNull WebFilterChain chain) {
36
- var isSafeMethod = exchange.getRequest().getMethod() == HttpMethod.GET;
+ var isSafeMethod =
37
+ exchange.getRequest().getMethod() == HttpMethod.GET || exchange.getRequest().getMethod() == HttpMethod.OPTIONS;
38
if (isSafeMethod) {
39
return chain.filter(exchange);
40
}
0 commit comments