SAP Knowledge Base Article - Public

3062705 - Image doesn't load in the career site after enabling Content Security Policy- Recruiting Marketing

Symptom

  • Image hosted in the SuccessFactors datacenter is not loading in the career site;
  • Image is not showing up anymore in the career site ;
  • Image is not rendering in the career site.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental. 

Environment

SAP SuccessFactors Recruiting Marketing (RMK)

Reproducing the Issue

  1. Go to Career Site;
  2. Search for a job;
  3. Click on any job from the search results;
  4. The image that should show up in the job details page is not rendering 

Cause

Content Security Policy feature is enabled in CSB > Settings > Data Privacy & Security Settings and the domain where the image is hosted is not listed under Allowed Domains.

Resolution

In order to verify the following blocked image domain the user can do the following:

  1. From the career site > Click on F12 or developer tools/inspect;
  2. Navigate to the Console Tab;
  3. Verify the URL being blocked by the Content Security Policy header (e.g. data:image/png;base64,iV…)., you will find a red message with the word Refused.

Follow the below steps to fix allow the domain where the image is hosted:

  1. Navigate to Career Site Builder;
  2. Click on Settings > Data Privacy & Security Settings;
  3. Add the domain associated with the image that you would like to have loading in the career site (e.g.  data:image)
  4. Save the process
  5. The image will appear in the external career site as expected.

The mentioned steps are also applicable for any custom JavaScript code that loads data (e.g. image, library, CSS, etc...) from different domains apart from the career site. 


See Also

3044364 - Enabling Content Security Policy for RMK Site - Recruiting Marketing

Keywords

Image Not Loading, Content Security Policy, CSB, Image Not Rendering , KBA , LOD-SF-RMK-CSB , Career Site Builder , Problem

Product

SAP SuccessFactors Recruiting all versions

Attachments

Pasted image.png