Package com.aquima.web.security.headers
Class ReferrerHeaderWriter
java.lang.Object
com.aquima.web.security.headers.ReferrerHeaderWriter
- All Implemented Interfaces:
org.springframework.security.web.header.HeaderWriter
public class ReferrerHeaderWriter
extends Object
implements org.springframework.security.web.header.HeaderWriter
Adds the Referrer policy header to the HTTP response based on the current security configuration.
Throws IllegalStateException
when configured ReferrerPolicy is not supported by Spring-security:
ReferrerPolicyHeaderWriter
, ReferrerPolicyHeaderWriter.ReferrerPolicy
- Since:
- 15.12
- Author:
- Raoul de Haard
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeHeaders
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)