Interface FetchMetadataRulesConfiguration
public interface FetchMetadataRulesConfiguration
Configuration for the built-in Fetch Metadata rules.
- Since:
- 5.6.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConfiguration prefix for the built-in Fetch Metadata rules.static final StringProperty that controls whether browser-initiated requests are allowed.static final StringProperty that controls whether permitted cross-origin requests are allowed.static final StringProperty that controls whether requests without theSec-Fetch-Siteheader are allowed.static final StringProperty that controls whether same-origin requests are allowed.static final StringProperty that controls whether same-site requests are allowed.static final StringProperty that controls whether cross-siteGETnavigations, including cross-site iframing, are allowed. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether to allow requests initiated directly by a user through browser UI (Sec-Fetch-Site: none).booleanWhether to allow cross-origin requests to routes whose@CrossOriginconfiguration accepts the request origin and HTTP method.booleanWhether to allow requests without theSec-Fetch-Siteheader.booleanWhether to allow requests whose Fetch Metadata identifies their initiator as the same origin.booleanWhether to allow requests whose Fetch Metadata identifies their initiator as the same site.booleanWhether to allow cross-siteGETnavigations, including loading the application in a cross-site<iframe>.
-
Field Details
-
PREFIX
-
PROPERTY_ALLOW_BROWSER_INITIATED_REQUESTS
Property that controls whether browser-initiated requests are allowed.- See Also:
-
PROPERTY_ALLOW_SAME_ORIGIN
Property that controls whether same-origin requests are allowed.- See Also:
-
PROPERTY_ALLOW_SAME_SITE
Property that controls whether same-site requests are allowed.- See Also:
-
PROPERTY_ALLOW_NO_FETCH_METADATA
Property that controls whether requests without theSec-Fetch-Siteheader are allowed.- See Also:
-
PROPERTY_ALLOW_SIMPLE_NAVIGATION
Property that controls whether cross-siteGETnavigations, including cross-site iframing, are allowed.- See Also:
-
PROPERTY_ALLOW_CROSS_ORIGIN
Property that controls whether permitted cross-origin requests are allowed.- See Also:
-
-
Method Details
-
isAllowCrossOrigin
boolean isAllowCrossOrigin()Whether to allow cross-origin requests to routes whose@CrossOriginconfiguration accepts the request origin and HTTP method.- Returns:
- whether the rule is enabled
-
isAllowBrowserInitiatedRequests
boolean isAllowBrowserInitiatedRequests()Whether to allow requests initiated directly by a user through browser UI (Sec-Fetch-Site: none).- Returns:
- whether the rule is enabled
-
isAllowSameOrigin
boolean isAllowSameOrigin()Whether to allow requests whose Fetch Metadata identifies their initiator as the same origin.- Returns:
- whether the rule is enabled
-
isAllowSameSite
boolean isAllowSameSite()Whether to allow requests whose Fetch Metadata identifies their initiator as the same site.- Returns:
- whether the rule is enabled
-
isAllowNoFetchMetadata
boolean isAllowNoFetchMetadata()Whether to allow requests without theSec-Fetch-Siteheader.- Returns:
- whether the rule is enabled
-