Skip to content

Commit 99ea9d3

Browse files
committed
better fix for ignoring csrf
1 parent dd7c234 commit 99ea9d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hub-backend/src/main/java/consulo/hub/backend/BackendSecurity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public OAuth2ClientCredentialsAuthenticationProvider postProcess(OAuth2ClientCre
258258
registry.requestMatchers("/**").denyAll();
259259
});
260260

261-
http.csrf(AbstractHttpConfigurer::disable);
261+
http.csrf(c -> c.ignoringRequestMatchers("/**"));
262262

263263
return http.build();
264264
}

0 commit comments

Comments
 (0)