forked from TYPO3-Documentation/TYPO3CMS-Reference-CoreApi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Unify YAML in Content Security Policy examples (TYPO3-Document…
…ation#4797) The strings in the examples are sometimes with or without double quotes, sometimes with a single quote. This is now streamlined, and double quotes always used. Please also note, that "static" sources in CSP are always enclosed in single quotes, like `'self'`, resulting in `"'self'"` in YAML. Releases: main, 12.4
- Loading branch information
1 parent
4896691
commit 89f12f2
Showing
6 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_append.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
4 changes: 2 additions & 2 deletions
4
Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_extend.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
mutations: | ||
- mode: set | ||
- mode: "set" | ||
directive: "default-src" | ||
sources: | ||
- "'self'" | ||
|
||
- mode: extend | ||
- mode: "extend" | ||
directive: "img-src" | ||
sources: | ||
- "example.com" |
4 changes: 2 additions & 2 deletions
4
Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_reduce.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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:" |
6 changes: 3 additions & 3 deletions
6
Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_remove.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
2 changes: 1 addition & 1 deletion
2
Documentation/ApiOverview/ContentSecurityPolicy/_csp_mode_set.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
mutations: | ||
- mode: set | ||
- mode: "set" | ||
directive: "img-src" | ||
sources: | ||
- "'self'" |