SAP Knowledge Base Article - Public

3467182 - Images are not Displayed in Template

Symptom

When adding images to a template using "hotlinked image" or an "external image" stored on an external domain, Service Cloud V2 may not display these images in the Email editor when the template is added.

Environment

  • SAP Service Cloud Version 2 1.0
  • SAP Sales Cloud Version 2 1.0

Reproducing the Issue

  1. Go to Case
  2. Open a Case
  3. Create an Email
  4. Add your Template which includes the Image

Cause

The images are not displayed, as the images hyperlinks have been blocked by Service Clouds content security policy.

Resolution

  • Add the domain name of the URL path for the image(s), to the allowed list in Content Security Policy Setting.
    1. Go to Settings
    2. Search for "Content Security Policy"
    3. Image Source
    4. Add the domain using the following format *.xxxxxx.com
  • Use real image links
  • Embed the image using Base64 (binary)
    • Convert the image to Base64 using a tool like https://www.base64-image.de/
    • Replace the image link with a Base64 string.
      Example:<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..." />
    • Tip:
      Use Base64 only for small images (like logos or icons). For bigger images, permanent links are better.

See Also

3475290 - Image in signature is not showing up in the email 

Keywords

Service Cloud V2, images, template, hotlinked image, external image, Email editor, broken image, image not loading, image, broken image, temporary image path, image not displaying, HTML template, email image issue, Base64 image, data URI, embed image in HTML, permanent image URL, hosted image path, convert image to Base64, inline image embedding, image CDN , KBA , CEC-CRM-TMP , Templates for SAP Sales/Service Cloud , CEC-CRM-EML , Emails for SAP Sales/Service Cloud , Problem

Product

SAP Sales Cloud and SAP Service Cloud Version 2 1.0