Skip to content

Commit e62c673

Browse files
authored
Document empty value for CSP headerName system property (#8795)
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
1 parent 12cf77c commit e62c673

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/doc/book/managing/system-properties.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1932,12 +1932,12 @@ properties:
19321932
- security
19331933
def: |
19341934
undefined
1935-
since: 2.539
1935+
since: 2.539 (empty value since 2.542 and LTS 2.541.1)
19361936
description: |
19371937
Defines the name of the Content Security Policy header to enforce.
19381938
This option takes precedence over UI configuration, Configuration as Code, and `mvn hpi:run` defaults.
1939-
The only possible values are `Content-Security-Policy` and `Content-Security-Policy-Report-Only`.
1940-
For escape hatch use, choose `Content-Security-Policy-Report-Only` to disable enforcement of too restrictive Content Security Policy.
1939+
The only possible values are `Content-Security-Policy`, `Content-Security-Policy-Report-Only`, and the empty string if neither header should be set.
1940+
For escape hatch use, either choose `Content-Security-Policy-Report-Only` to disable enforcement of too restrictive Content Security Policy (but retain the header), or set it to the empty string to disable it entirely.
19411941
See link:/doc/book/security/csp/[the documentation].
19421942

19431943
- name: jenkins.security.csp.impl.DevelopmentHeaderDecider.DISABLED

0 commit comments

Comments
 (0)