Class ReferrerPolicyHeaderWriter

java.lang.Object
org.springframework.security.web.header.writers.ReferrerPolicyHeaderWriter
All Implemented Interfaces:
HeaderWriter

public class ReferrerPolicyHeaderWriter extends Object implements HeaderWriter

Provides support for Referrer Policy.

The list of policies defined can be found at Referrer Policies.

This implementation of HeaderWriter writes the following header:

  • Referrer-Policy

By default, the Referrer-Policy header is not included in the response. Policy no-referrer is used by default if no ReferrerPolicyHeaderWriter.ReferrerPolicy is set.

Since:
4.2