Could anyone point me in the right direction (either documentation or in this forum) to replace the deprecated antMatchers in 24.8.0. Here is my existing code in a class that extends VaadinWebSecurity. It currently works fine but will be effectively deprecated:
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeHttpRequests(a -> a.requestMatchers(antMatchers("/api/**")).permitAll());
http.headers(h -> h.frameOptions(HeadersConfigurer.FrameOptionsConfig::sameOrigin));
http.csrf(c -> c.ignoringRequestMatchers(antMatchers("/api/**")));
super.configure(http);
setLoginView(http, LoginView.class);
}
I need to allow any request to /api/* including cross site (csrf). Thanks in advance.