diff --git a/docs/modules/ROOT/pages/migration/reactive.adoc b/docs/modules/ROOT/pages/migration/reactive.adoc index e9f964578b..ed46de7633 100644 --- a/docs/modules/ROOT/pages/migration/reactive.adoc +++ b/docs/modules/ROOT/pages/migration/reactive.adoc @@ -186,7 +186,9 @@ open fun securityWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChai fun csrfCookieWebFilter(): WebFilter { return WebFilter { exchange, chain -> val csrfToken = exchange.getAttribute>(CsrfToken::class.java.name) ?: Mono.empty() - csrfToken.doOnSuccess { }.then(chain.filter(exchange)) + csrfToken.doOnSuccess { + /* Ensures the token is subscribed to. */ + }.then(chain.filter(exchange)) } } ----