Package jetbrains.buildServer.web
Interface ContentSecurityPolicyConfig
-
- All Known Implementing Classes:
HttpSecurityHeadersFilter
public interface ContentSecurityPolicyConfig
Allows manipulating directives for ContentSecurityPolicy header in TeamCity See https://content-security-policy.com/ for some help- Since:
- 2019.1
- Author:
- kir
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>
DIRECTIVE_NAMES
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addDirectiveItems(String directiveName, String... values)
void
addUnprotectedPath(String path)
void
removeDirectiveItems(String directiveName, String... values)
The method allows to remove directives added viaaddDirectiveItems(String, String...)
-
-
-
Method Detail
-
addUnprotectedPath
void addUnprotectedPath(String path)
- Parameters:
path
- start of the path which will be allowed to loaded in external iframes, allows embedding TeamCity pages into other sites.
-
addDirectiveItems
void addDirectiveItems(String directiveName, String... values)
- Parameters:
directiveName
- related CSP directive, must be one ofDIRECTIVE_NAMES
values
- include quotes when needed, like "'self'"- Throws:
IllegalArgumentException
- when directiveName is not valid
-
removeDirectiveItems
void removeDirectiveItems(String directiveName, String... values)
The method allows to remove directives added viaaddDirectiveItems(String, String...)
- Parameters:
directiveName
- related CSP directive, must be one ofDIRECTIVE_NAMES
values
- include quotes when needed, like "'self'"
-
-