Skip to content

Commit

Permalink
Enable csrf
Browse files Browse the repository at this point in the history
  • Loading branch information
JoepdeJong committed May 4, 2024
1 parent 6137bab commit b070de5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/ch/wisv/events/ChConnectConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ public void configure(HttpSecurity http) throws Exception {
http
.cors()
.and()
.csrf().disable()
.authorizeRequests()
.csrf()
.and().authorizeRequests()
.antMatchers("/administrator/**").hasRole("ADMIN")
.antMatchers("/", "/management/health").permitAll()
Expand Down

0 comments on commit b070de5

Please sign in to comment.