Skip to content

Commit baa37ae

Browse files
Potential fix for code scanning alert no. 47: Disabled Spring CSRF protection
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Marc <[email protected]>
1 parent 09d6305 commit baa37ae

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

rdp-proxy/src/main/java/io/sentrius/sso/rdpproxy/config/SecurityConfig.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ SecurityFilterChain tunnelChain(HttpSecurity http,
118118
JwtDecoder compositeJwtDecoder) throws Exception {
119119
http
120120
.securityMatcher("/guacamole/**")
121-
.csrf(csrf -> csrf.disable())
122121
.requestCache(cache -> cache.disable())
123122
.sessionManagement(sm -> sm.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
124123
.authorizeHttpRequests(auth -> auth.anyRequest().authenticated())

0 commit comments

Comments
 (0)