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
- Go to Career Site;
- Search for a job;
- Click on any job from the search results;
- 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:
- From the career site > Click on F12 or developer tools/inspect;
- Navigate to the Console Tab;
-
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:
- Navigate to Career Site Builder;
- Click on Settings > Data Privacy & Security Settings;
- Add the domain associated with the image that you would like to have loading in the career site (e.g. data:image)
- Save the process
- 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
Attachments
Pasted image.png |