Content security Policy (CSP) handled from Plugin

Hi Team,


We have developed a plugin (Build Step Plugin) which requires an access to external api, but because of Content security policy user needs to update the internal properties file manually, can you please help us in implementing the ContentSecurityPolicyConfig interface in the plugin itself.

Can you provide the some example of method implementation of 



We didn't find anything related to this in whole community.

We need to add the following config

teamcity.web.header.Content-Security-Policy.adminUI.protectedValue=frame-ancestors 'self'; connect-src 'self' ws: wss: http://localhost:9001/api/v3/schedules
teamcity.web.header.Content-Security-Policy.protectedValue=frame-ancestors 'self'; connect-src 'self' ws: wss: http://localhost:9001/api/v3/schedules

Please sign in to leave a comment.