Skip to content

Commit

Permalink
fix: actuator post
Browse files Browse the repository at this point in the history
  • Loading branch information
Toto-hitori committed Apr 24, 2024
1 parent fc16989 commit 068b0c5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,14 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http, Authentication
.cors(Customizer.withDefaults())
.sessionManagement(configuration -> configuration.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
.authorizeHttpRequests(authorize -> authorize
.requestMatchers(HttpMethod.GET, "/actuator/**").permitAll()
.requestMatchers(HttpMethod.POST, "/actuator/**").permitAll()
.requestMatchers(HttpMethod.POST,"/questions/**").permitAll()
.requestMatchers(HttpMethod.GET,"/questions/**").permitAll()
.requestMatchers(HttpMethod.GET,"/users/details").authenticated()
.requestMatchers(HttpMethod.GET,"/users","/users/**").permitAll()
.requestMatchers(HttpMethod.GET,"/auth/logout").authenticated()
.requestMatchers(HttpMethod.POST,"/auth/**").permitAll()
.requestMatchers(HttpMethod.GET, "/actuator/**").permitAll()
.requestMatchers(HttpMethod.GET, "/swagger/**").permitAll()
.anyRequest().authenticated())
.csrf(AbstractHttpConfigurer::disable)
Expand Down

0 comments on commit 068b0c5

Please sign in to comment.