Merge branch '5.1.x'
This commit is contained in:
commit
f6c16815b4
|
@ -284,7 +284,7 @@ public abstract class AbstractMessageConverterMethodProcessor extends AbstractMe
|
||||||
if (body != null) {
|
if (body != null) {
|
||||||
Object theBody = body;
|
Object theBody = body;
|
||||||
LogFormatUtils.traceDebug(logger, traceOn ->
|
LogFormatUtils.traceDebug(logger, traceOn ->
|
||||||
"Writing [" + LogFormatUtils.formatValue(theBody, traceOn) + "]");
|
"Writing [" + LogFormatUtils.formatValue(theBody, !traceOn) + "]");
|
||||||
addContentDispositionHeader(inputMessage, outputMessage);
|
addContentDispositionHeader(inputMessage, outputMessage);
|
||||||
if (genericConverter != null) {
|
if (genericConverter != null) {
|
||||||
genericConverter.write(body, targetType, selectedMediaType, outputMessage);
|
genericConverter.write(body, targetType, selectedMediaType, outputMessage);
|
||||||
|
|
|
@ -224,6 +224,11 @@ You can apply CORS support through the built-in
|
||||||
{api-spring-framework}/web/cors/reactive/CorsWebFilter.html[`CorsWebFilter`], which is a
|
{api-spring-framework}/web/cors/reactive/CorsWebFilter.html[`CorsWebFilter`], which is a
|
||||||
good fit with <<webflux-fn,functional endpoints>>.
|
good fit with <<webflux-fn,functional endpoints>>.
|
||||||
|
|
||||||
|
NOTE: If you try to use the `CorsFilter` with Spring Security, keep in mind that Spring
|
||||||
|
Security has
|
||||||
|
https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#cors[built-in support]
|
||||||
|
for CORS.
|
||||||
|
|
||||||
To configure the filter, you can declare a `CorsWebFilter` bean and pass a
|
To configure the filter, you can declare a `CorsWebFilter` bean and pass a
|
||||||
`CorsConfigurationSource` to its constructor, as the following example shows:
|
`CorsConfigurationSource` to its constructor, as the following example shows:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue