okay pls yes pls pls
All checks were successful
Deploy API / deploy (ubuntu-latest, 2.44.0) (push) Successful in 45s

This commit is contained in:
Braydon 2024-09-19 00:28:12 -04:00
parent 22805e252e
commit 1a564dd4f3

@ -49,7 +49,8 @@ public class WebSecurityConfig {
authentication.setAuthenticated(true); // Mark the session as authenticated
return authentication;
});
return http.csrf(AbstractHttpConfigurer::disable) // Disable CSRF
return http.cors(AbstractHttpConfigurer::disable)
.csrf(AbstractHttpConfigurer::disable) // Disable CSRF
.sessionManagement(sessionManagement -> sessionManagement.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) // No sessions
.formLogin(AbstractHttpConfigurer::disable) // Disable form logins
.securityMatcher("/**") // Require auth for all routes