Skip to content

Commit b9da06f

Browse files
Potential fix for code scanning alert no. 1: Disabled Spring CSRF protection
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent c40c034 commit b9da06f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

04-PracticalSamples/petstory/src/main/java/com/example/petstory/SecurityConfig.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
2121
.authorizeHttpRequests(auth -> auth
2222
.anyRequest().permitAll()
2323
)
24-
.csrf(csrf -> csrf.disable()) // Disabled for simplicity in this demo
2524
.headers(headers -> headers
2625
.frameOptions(frameOptions -> frameOptions.deny())
2726
.contentTypeOptions(contentTypeOptions -> {})

0 commit comments

Comments
 (0)