Content Disposition Filter content-disposition-filter
Content disposition filter is a security feature against XSS attacks on SVG files.
Once installed, the filter blocks access to all assets. For example, you could not view a PDF online. This section describes how to configure the filter to your needs.
Configure Content Disposition Filter configure-content-disposition-filter
You can view the .
The Content Disposition Filter options provide the following functionality:
-
Content Disposition Paths: A list of paths where the filter is applied followed by a list of mime-types to exclude on that path. This path must be an absolute path and may contain a wildcard (
*
) at the end, to match every resource path with the given path prefix. For example:/content/*:image/jpeg,image/svg+xml
applies the filter to every node in/content?
except JPG and SVG images. -
Excluded Resource Paths: A list of excluded resources, each resource path must be given as absolute and fully qualified path. Prefix matching/wildcards are not supported.
-
Enable For All Resource Paths: This flag controls whether to enable this filter for all paths, except for the excluded paths defined by Excluded Resource Paths. Setting this flag to ‘true’ leads to ignoring Content Disposition Paths. Independent of the configuration, only resource paths are covered which contain a property named
jcr:data
orjcr:content/jcr:data
.