Skip to content

Commit

Permalink
forgot to push backend
Browse files Browse the repository at this point in the history
  • Loading branch information
eschremp committed Apr 23, 2024
1 parent 0e7a7ba commit fd9d819
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ public CorsConfiguration getCorsConfiguration(HttpServletRequest request) {
return config;
}

})).csrf((csrf) -> csrf.csrfTokenRequestHandler(requestHandler).ignoringRequestMatchers( "/register","/user","/api/v1/**")
})).csrf((csrf) -> csrf.csrfTokenRequestHandler(requestHandler).ignoringRequestMatchers( "/register","/user")
.csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse()))
.addFilterAfter(new CsrfCookieFilter(), BasicAuthenticationFilter.class)
.authorizeHttpRequests((requests)->requests

//.requestMatchers("/createreview").authenticated()
.requestMatchers("/register","/user","/api/v1/**").permitAll())
/*.requestMatchers("/createreview","/itinerary", "/addFavorites", "/favorites", "/favorites/*", "/editreview/*").authenticated()
.requestMatchers("/register","/user", "/reviews").permitAll())*/
.requestMatchers("/api/v1/**", "/createreview").authenticated()
.requestMatchers("/register","/user", "/reviews").permitAll())

.formLogin(Customizer.withDefaults())
.httpBasic(Customizer.withDefaults());
Expand Down

0 comments on commit fd9d819

Please sign in to comment.