public enum GrailsSecurityHeadersProperties.Defaults
Controls when the built-in default header values are applied. Headers the
application configured explicitly (any grails.security.headers.<header>.*
key) are always applied, whatever this setting says.
| Enum constant | Description |
|---|---|
ALWAYS |
Apply the defaults on every response, including behind a reverse proxy. |
AUTO |
Apply the defaults unless the request is detected as having come through a reverse proxy, in which case only explicitly configured headers are sent. |
NEVER |
Never apply the defaults; only explicitly configured headers are sent. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Apply the defaults on every response, including behind a reverse proxy. This is the default.
Apply the defaults unless the request is detected as having come through a reverse proxy, in which case only explicitly configured headers are sent. For deployments whose proxy already sends these headers.
Never apply the defaults; only explicitly configured headers are sent.