Skip to content

Commit

Permalink
Update web security syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Pavlovskiy committed Aug 21, 2023
1 parent b0400b7 commit fd3d9e1
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,8 @@ public class WebSecurityConfig {
public SecurityFilterChain filterChain(HttpSecurity http, MvcRequestMatcher.Builder mvc)
throws Exception {
http
.cors()
.and()
.csrf()
.disable()
.headers()
.frameOptions()
.disable()
.and()
.cors(Customizer.withDefaults())
.csrf(csrf -> csrf.disable())
.authorizeHttpRequests(requests -> {
requests
.requestMatchers(antMatcher("/h2-console/**"))
Expand Down

0 comments on commit fd3d9e1

Please sign in to comment.