Class CrossOriginEmbedderPolicyServerHttpHeadersWriter
java.lang.Object
org.springframework.security.web.server.header.CrossOriginEmbedderPolicyServerHttpHeadersWriter
- All Implemented Interfaces:
ServerHttpHeadersWriter
public final class CrossOriginEmbedderPolicyServerHttpHeadersWriter
extends Object
implements ServerHttpHeadersWriter
Inserts Cross-Origin-Embedder-Policy headers.
- Since:
- 5.7
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setPolicy
(CrossOriginEmbedderPolicyServerHttpHeadersWriter.CrossOriginEmbedderPolicy embedderPolicy) Sets theCrossOriginEmbedderPolicyServerHttpHeadersWriter.CrossOriginEmbedderPolicy
value to be used in theCross-Origin-Embedder-Policy
headerreactor.core.publisher.Mono<Void>
writeHttpHeaders
(org.springframework.web.server.ServerWebExchange exchange) Write the headers to the response.
-
Field Details
-
EMBEDDER_POLICY
- See Also:
-
-
Constructor Details
-
CrossOriginEmbedderPolicyServerHttpHeadersWriter
public CrossOriginEmbedderPolicyServerHttpHeadersWriter()
-
-
Method Details
-
setPolicy
public void setPolicy(CrossOriginEmbedderPolicyServerHttpHeadersWriter.CrossOriginEmbedderPolicy embedderPolicy) Sets theCrossOriginEmbedderPolicyServerHttpHeadersWriter.CrossOriginEmbedderPolicy
value to be used in theCross-Origin-Embedder-Policy
header- Parameters:
embedderPolicy
- theCrossOriginEmbedderPolicyServerHttpHeadersWriter.CrossOriginEmbedderPolicy
to use
-
writeHttpHeaders
public reactor.core.publisher.Mono<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)
.
-