Environments Set CSP

PUT {{baseUrl}}/environments/:EnvironmentKey/content_security_policies

Sets the Content Security Policies to a given environment

Request Body

{"BaseUri"=>{"CSPDirectiveId"=>0, "Value"=>"", "IsSetForEnv"=>false}, "ChildSrc"=>{"CSPDirectiveId"=>0, "Value"=>"", "IsSetForEnv"=>false}, "ConnectSrc"=>{"CSPDirectiveId"=>0, "Value"=>"", "IsSetForEnv"=>false}, "DefaultSrc"=>{"CSPDirectiveId"=>0, "Value"=>"", "IsSetForEnv"=>false}, "FontSrc"=>{"CSPDirectiveId"=>0, "Value"=>"", "IsSetForEnv"=>false}, "ImgSrc"=>{"CSPDirectiveId"=>0, "Value"=>"", "IsSetForEnv"=>false}, "MediaSrc"=>{"CSPDirectiveId"=>0, "Value"=>"", "IsSetForEnv"=>false}, "ObjectSrc"=>{"CSPDirectiveId"=>0, "Value"=>"", "IsSetForEnv"=>false}, "PluginTypes"=>{"CSPDirectiveId"=>0, "Value"=>"", "IsSetForEnv"=>false}, "ScriptSrc"=>{"CSPDirectiveId"=>0, "Value"=>"", "IsSetForEnv"=>false}, "StyleSrc"=>{"CSPDirectiveId"=>0, "Value"=>"", "IsSetForEnv"=>false}, "FrameAncestors"=>{"CSPDirectiveId"=>0, "Value"=>"", "IsSetForEnv"=>false}, "ReportTo"=>{"CSPDirectiveId"=>0, "Value"=>"", "IsSetForEnv"=>false}, "Other"=>{"CSPDirectiveId"=>0, "Value"=>"", "IsSetForEnv"=>false}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"Success":false,"EnvironmentKey":"","ErrorDirectives":["",""],"ErrorMessage":"","NeedsRecompilation":false,"AddedDataDirectives":["",""],"AddedSelfDirectives":["",""],"AddedInternalDirectives":["",""],"AddedGapDirectives":["",""]}