Skip to content

Commit e601538

Browse files
changed SecurityConfig.java
1 parent d673f4f commit e601538

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/hexlet/code/config/SecurityConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ SecurityFilterChain securityFilterChain(HttpSecurity http, HandlerMappingIntrosp
3232
throws Exception {
3333

3434
return http
35+
// CSRF protection is disabled because this app uses stateless JWT-based authentication
3536
.csrf(csrf -> csrf.disable())
3637
.authorizeHttpRequests(auth -> auth
3738
.requestMatchers("/").permitAll()

0 commit comments

Comments
 (0)