Replace lodash template in field formatters #94627
Labels
Feature:FieldFormatters
Feature:Security/CSP
Platform Security - Content Security Policy
NeededFor:Security
Both the source and color field formatters rely on the lodash
template
function in order to generate their markup.This function requires dynamic code execution, which prevents us from enabling a more restrictive content-security-policy. The field formatters should be updated to use another method of HTML generation, such as
ReactDOMServer. renderToStaticMarkup()
, which is designed to be used both client-side and server-side (despite its name)The text was updated successfully, but these errors were encountered: