Skip to content
Snippets Groups Projects

fixed security configuration to allow access to endpoints

Closed Torbjørn Antonsen requested to merge database-integration into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -54,7 +54,7 @@ public class SecurityConfiguration {
@@ -54,7 +54,7 @@ public class SecurityConfiguration {
return httpSecurity
return httpSecurity
.csrf(AbstractHttpConfigurer::disable)
.csrf(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(auth -> {
.authorizeHttpRequests(auth -> {
auth.requestMatchers("/api/").permitAll();
auth.requestMatchers("/api/**").permitAll();
auth.anyRequest().authenticated();
auth.anyRequest().authenticated();
})
})
Loading