We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbc3868 commit b6fccb7Copy full SHA for b6fccb7
src/main/java/de/rwth/idsg/steve/config/SecurityConfiguration.java
@@ -104,6 +104,10 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
104
).permitAll()
105
.requestMatchers(prefix + "/**").hasRole("ADMIN")
106
)
107
+ // SOAP stations are making POST calls for communication. even though the following path is permitted for
108
+ // all access, there is a global default behaviour from spring security: enable CSRF for all POSTs.
109
+ // we need to disable CSRF for SOAP paths explicitly.
110
+ .csrf(c -> c.ignoringRequestMatchers(CONFIG.getCxfMapping() + "/**"))
111
.sessionManagement(
112
req -> req.invalidSessionUrl(prefix + "/signin")
113
0 commit comments