Class XFrameOptionsServerHttpHeadersWriter
java.lang.Object
org.springframework.security.web.server.header.XFrameOptionsServerHttpHeadersWriter
- All Implemented Interfaces:
- ServerHttpHeadersWriter
ServerHttpHeadersWriter implementation for the X-Frame-Options headers.- Since:
- 5.0
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumThe X-Frame-Options values.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidSets the X-Frame-Options mode.reactor.core.publisher.Mono<Void>writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange) Write the headers to the response.
- 
Field Details- 
X_FRAME_OPTIONS- See Also:
 
 
- 
- 
Constructor Details- 
XFrameOptionsServerHttpHeadersWriterpublic XFrameOptionsServerHttpHeadersWriter()
 
- 
- 
Method Details- 
writeHttpHeaderspublic reactor.core.publisher.Mono<Void> writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange) Description copied from interface:ServerHttpHeadersWriterWrite the headers to the response.- Specified by:
- writeHttpHeadersin interface- ServerHttpHeadersWriter
- Returns:
- A Mono which is returned to the Supplierof theReactiveHttpOutputMessage.beforeCommit(Supplier).
 
- 
setModeSets the X-Frame-Options mode. There is no support for ALLOW-FROM because not all browsers support it. Consider using X-Frame-Options with Content-Security-Policy frame-ancestors.- Parameters:
- mode-
 
 
-