okay pls yes pls pls
All checks were successful
Deploy API / deploy (ubuntu-latest, 2.44.0) (push) Successful in 45s
All checks were successful
Deploy API / deploy (ubuntu-latest, 2.44.0) (push) Successful in 45s
This commit is contained in:
parent
22805e252e
commit
1a564dd4f3
@ -49,7 +49,8 @@ public class WebSecurityConfig {
|
|||||||
authentication.setAuthenticated(true); // Mark the session as authenticated
|
authentication.setAuthenticated(true); // Mark the session as authenticated
|
||||||
return authentication;
|
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
|
.sessionManagement(sessionManagement -> sessionManagement.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) // No sessions
|
||||||
.formLogin(AbstractHttpConfigurer::disable) // Disable form logins
|
.formLogin(AbstractHttpConfigurer::disable) // Disable form logins
|
||||||
.securityMatcher("/**") // Require auth for all routes
|
.securityMatcher("/**") // Require auth for all routes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user