Class SecureHeadersGatewayFilterFactory
java.lang.Object
org.springframework.cloud.gateway.support.AbstractConfigurable<C>
org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory<SecureHeadersGatewayFilterFactory.Config>
org.springframework.cloud.gateway.filter.factory.SecureHeadersGatewayFilterFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,GatewayFilterFactory<SecureHeadersGatewayFilterFactory.Config>,Configurable<SecureHeadersGatewayFilterFactory.Config>,ShortcutConfigurable,org.springframework.context.ApplicationEventPublisherAware
public class SecureHeadersGatewayFilterFactory
extends AbstractGatewayFilterFactory<SecureHeadersGatewayFilterFactory.Config>
https://blog.appcanary.com/2017/http-security-headers.html.
- Author:
- Spencer Gibb, Thirunavukkarasu Ravichandran
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory
AbstractGatewayFilterFactory.NameConfigNested classes/interfaces inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
ShortcutConfigurable.GatewayEvaluationContext, ShortcutConfigurable.RestrictivePropertyAccessor, ShortcutConfigurable.ShortcutType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringContent-Security Policy header name.static final StringReferrer Policy header name.static final StringStrict transport security header name.static final StringContent-Type Options header name.static final StringDownload Options header name.static final StringFrame options header name.static final StringPermitted Cross-Domain Policies header name.static final StringXss-Protection header name.Fields inherited from interface org.springframework.cloud.gateway.filter.factory.GatewayFilterFactory
NAME_KEY, VALUE_KEY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory
getPublisher, setApplicationEventPublisherMethods inherited from class org.springframework.cloud.gateway.support.AbstractConfigurable
getConfigClass, newConfig, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.cloud.gateway.filter.factory.GatewayFilterFactory
apply, apply, apply, getConfigClass, name, newConfigMethods inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
shortcutFieldOrder, shortcutFieldPrefix, shortcutType
-
Field Details
-
X_XSS_PROTECTION_HEADER
Xss-Protection header name.- See Also:
-
STRICT_TRANSPORT_SECURITY_HEADER
Strict transport security header name.- See Also:
-
X_FRAME_OPTIONS_HEADER
Frame options header name.- See Also:
-
X_CONTENT_TYPE_OPTIONS_HEADER
Content-Type Options header name.- See Also:
-
REFERRER_POLICY_HEADER
Referrer Policy header name.- See Also:
-
CONTENT_SECURITY_POLICY_HEADER
Content-Security Policy header name.- See Also:
-
X_DOWNLOAD_OPTIONS_HEADER
Download Options header name.- See Also:
-
X_PERMITTED_CROSS_DOMAIN_POLICIES_HEADER
Permitted Cross-Domain Policies header name.- See Also:
-
-
Constructor Details
-
SecureHeadersGatewayFilterFactory
-
-
Method Details
-
apply
-