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 41e6347 commit 486722eCopy full SHA for 486722e
web/src/main/java/org/springframework/security/web/server/csrf/CookieServerCsrfTokenRepository.java
@@ -27,7 +27,6 @@
27
import org.springframework.web.server.ServerWebExchange;
28
29
import reactor.core.publisher.Mono;
30
-import reactor.core.scheduler.Schedulers;
31
32
/**
33
* A {@link ServerCsrfTokenRepository} that persists the CSRF token in a cookie named "XSRF-TOKEN" and
@@ -64,7 +63,7 @@ public static CookieServerCsrfTokenRepository withHttpOnlyFalse() {
64
63
65
@Override
66
public Mono<CsrfToken> generateToken(ServerWebExchange exchange) {
67
- return Mono.fromCallable(this::createCsrfToken).subscribeOn(Schedulers.boundedElastic());
+ return Mono.fromCallable(this::createCsrfToken);
68
}
69
70
0 commit comments