Class CrossOriginOpenerPolicyHeaderWriter
java.lang.Object
org.springframework.security.web.header.writers.CrossOriginOpenerPolicyHeaderWriter
- All Implemented Interfaces:
HeaderWriter
Inserts the Cross-Origin-Opener-Policy header
- Since:
- 5.7
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets theCrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy
value to be used in theCross-Origin-Opener-Policy
headervoid
writeHeaders
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Create aHeader
instance.
-
Constructor Details
-
CrossOriginOpenerPolicyHeaderWriter
public CrossOriginOpenerPolicyHeaderWriter()
-
-
Method Details
-
setPolicy
Sets theCrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy
value to be used in theCross-Origin-Opener-Policy
header- Parameters:
openerPolicy
- theCrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy
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
-