Skip to content

Commit d1e53e6

Browse files
committed
Fixup wrong CSRF config
1 parent b456da4 commit d1e53e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/faforever/api/config/security/WebSecurityConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
2727
final var bearerTokenResolver = new DefaultBearerTokenResolver();
2828
bearerTokenResolver.setAllowUriQueryParameter(true);
2929

30+
// @formatter:off
31+
http.csrf(AbstractHttpConfigurer::disable);
3032
http.headers(headersConfig -> headersConfig.cacheControl(HeadersConfigurer.CacheControlConfig::disable));
3133
http.formLogin(AbstractHttpConfigurer::disable);
3234
http.oauth2ResourceServer(oauth2Config -> {

0 commit comments

Comments
 (0)