Class ContentTypeOptionsServerHttpHeadersWriter
- java.lang.Object
-
- org.springframework.security.web.server.header.ContentTypeOptionsServerHttpHeadersWriter
-
- All Implemented Interfaces:
ServerHttpHeadersWriter
public class ContentTypeOptionsServerHttpHeadersWriter extends java.lang.Object implements ServerHttpHeadersWriter
Adds X-Content-Type-Options: nosniff- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NOSNIFF
static java.lang.String
X_CONTENT_OPTIONS
-
Constructor Summary
Constructors Constructor Description ContentTypeOptionsServerHttpHeadersWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>
writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
Write the headers to the response.
-
-
-
Field Detail
-
X_CONTENT_OPTIONS
public static final java.lang.String X_CONTENT_OPTIONS
- See Also:
- Constant Field Values
-
NOSNIFF
public static final java.lang.String NOSNIFF
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeHttpHeaders
public reactor.core.publisher.Mono<java.lang.Void> writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
Description copied from interface:ServerHttpHeadersWriter
Write the headers to the response.- Specified by:
writeHttpHeaders
in interfaceServerHttpHeadersWriter
- Returns:
- A Mono which is returned to the
Supplier
of theReactiveHttpOutputMessage.beforeCommit(Supplier)
.
-
-