Package jetbrains.buildServer.web
Interface ContentSecurityPolicyConfig
-
- All Known Implementing Classes:
HttpSecurityHeadersFilter
public interface ContentSecurityPolicyConfigAllows 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 voidaddDirectiveItems(String directiveName, String... values)voidaddUnprotectedPath(String path)voidremoveDirectiveItems(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_NAMESvalues- 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_NAMESvalues- include quotes when needed, like "'self'"
-
-