diff --git a/Documentation/ApiOverview/ContentSecurityPolicy/_csp.yaml b/Documentation/ApiOverview/ContentSecurityPolicy/_csp.yaml index 5eef93e17a..c1b4dbe369 100644 --- a/Documentation/ApiOverview/ContentSecurityPolicy/_csp.yaml +++ b/Documentation/ApiOverview/ContentSecurityPolicy/_csp.yaml @@ -2,31 +2,31 @@ inheritDefault: true mutations: # Results in `default-src 'self'` - - mode: set - directive: 'default-src' + - mode: "set" + directive: "default-src" sources: - "'self'" # Extends the ancestor directive ('default-src'), # thus reuses 'self' and adds additional sources # Results in `img-src 'self' data: https://*.typo3.org` - - mode: extend - directive: 'img-src' + - mode: "extend" + directive: "img-src" sources: - - 'data:' - - 'https://*.typo3.org' + - "data:" + - "https://*.typo3.org" # Extends the ancestor directive ('default-src'), # thus reuses 'self' and adds additional sources # Results in `script-src 'self' 'nonce-[random]'` # ('nonce-proxy' is substituted when compiling the policy) - - mode: extend - directive: 'script-src' + - mode: "extend" + directive: "script-src" sources: - "'nonce-proxy'" # Results in `worker-src blob:` - - mode: set - directive: 'worker-src' + - mode: "set" + directive: "worker-src" sources: - - 'blob:' + - "blob:" diff --git a/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_append.yaml b/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_append.yaml index f1ecbf3d35..eb02293371 100644 --- a/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_append.yaml +++ b/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_append.yaml @@ -1,15 +1,15 @@ mutations: - - mode: set + - mode: "set" directive: "default-src" sources: - "'self'" - - mode: set + - mode: "set" directive: "img-src" sources: - - example.org + - "example.org" - - mode: append + - mode: "append" directive: "img-src" sources: - - example.com + - "example.com" diff --git a/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_extend.yaml b/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_extend.yaml index ef314f91ee..f9f8410742 100644 --- a/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_extend.yaml +++ b/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_extend.yaml @@ -1,10 +1,10 @@ mutations: - - mode: set + - mode: "set" directive: "default-src" sources: - "'self'" - - mode: extend + - mode: "extend" directive: "img-src" sources: - "example.com" diff --git a/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_reduce.yaml b/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_reduce.yaml index 5071dee957..52a9ad26ff 100644 --- a/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_reduce.yaml +++ b/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_reduce.yaml @@ -1,12 +1,12 @@ mutations: - - mode: set + - mode: "set" directive: "img-src" sources: - "'self'" - "data:" - "example.com" - - mode: reduce + - mode: "reduce" directive: "img-src" sources: - "data:" diff --git a/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_remove.yaml b/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_remove.yaml index baa9022a89..f798f04978 100644 --- a/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_remove.yaml +++ b/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_remove.yaml @@ -1,13 +1,13 @@ mutations: - - mode: set + - mode: "set" directive: "default-src" sources: - "'self'" - - mode: set + - mode: "set" directive: "img-src" sources: - "data:" - - mode: remove + - mode: "remove" directive: "img-src" diff --git a/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_set.yaml b/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_set.yaml index 52dd4862c6..59cfe57a7d 100644 --- a/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_set.yaml +++ b/Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_set.yaml @@ -1,5 +1,5 @@ mutations: - - mode: set + - mode: "set" directive: "img-src" sources: - "'self'"