Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 997a2f64 authored by Darrel Danadyaksa Poli's avatar Darrel Danadyaksa Poli
Browse files

[REFACTOR] Update SecurityConfig to clarify CSRF protection handling

parent ad11accf
No related branches found
No related tags found
1 merge request!1Login registration
......@@ -16,7 +16,7 @@ public class SecurityConfig {
@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
http
.csrf(AbstractHttpConfigurer::disable) // Disable CSRF protection (not recommended for production)
// CSRF protection is enabled by default, so we don't disable it here
.authorizeHttpRequests(auth -> auth
.requestMatchers("/**").permitAll() // Allow all requests
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment