Class CrossOriginEmbedderPolicyHeaderWriter
java.lang.Object
org.springframework.security.web.header.writers.CrossOriginEmbedderPolicyHeaderWriter
- All Implemented Interfaces:
HeaderWriter
Inserts Cross-Origin-Embedder-Policy header.
- Since:
- 5.7
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets theCrossOriginEmbedderPolicyHeaderWriter.CrossOriginEmbedderPolicy
value to be used in theCross-Origin-Embedder-Policy
headervoid
writeHeaders
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Create aHeader
instance.
-
Constructor Details
-
CrossOriginEmbedderPolicyHeaderWriter
public CrossOriginEmbedderPolicyHeaderWriter()
-
-
Method Details
-
setPolicy
public void setPolicy(CrossOriginEmbedderPolicyHeaderWriter.CrossOriginEmbedderPolicy embedderPolicy) Sets theCrossOriginEmbedderPolicyHeaderWriter.CrossOriginEmbedderPolicy
value to be used in theCross-Origin-Embedder-Policy
header- Parameters:
embedderPolicy
- theCrossOriginEmbedderPolicyHeaderWriter.CrossOriginEmbedderPolicy
to use
-
writeHeaders
public void writeHeaders(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from interface:HeaderWriter
Create aHeader
instance.- Specified by:
writeHeaders
in interfaceHeaderWriter
- Parameters:
request
- the requestresponse
- the response
-