Skip to content

Commit

Permalink
chore: add "/pets" endpoint to the securityFilterChain
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsbalazs committed Sep 10, 2024
1 parent f0b3bf8 commit 230a356
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.authorizeHttpRequests((authorize) -> authorize
.requestMatchers(allowedUrls).permitAll()
.requestMatchers("/profile-update").authenticated()
.requestMatchers("/pets").authenticated()
.anyRequest().authenticated()
)
.cors(cors -> cors.configurationSource(corsConfigurationSource()))
Expand Down

0 comments on commit 230a356

Please sign in to comment.