cancel
Showing results for 
Search instead for 
Did you mean: 

External DAM - Product images are not displayed in Hybris backoffice

skotni
Explorer

Hello Experts,

We are using an external DAM to store product images. Hybris media is updated with the url [www.external-cdn.com/product/image1.png] against the Products and the images are not locally stored in Hybris system.

It is observed that these images are not shown in admin & pcm backoffice though the urls of product picture & thumbnail are accurate. Hybris version : 6.7

Could anyone assist on this?

Thanks in advance.

VinayKumarS
Active Contributor
0 Kudos

can you please let me know how you uploaded the image. Because even if you are using the external dam. Still you need to create a image reference in media folder right. If yes then it must appear in the backoffice applications.

skotni
Explorer
0 Kudos

Hi Vinay,

We didn't want to store the images in Hybris. It will work if the images are stored locally in Hybris platform.

Below are the steps followed.

  1. The custom logic to have media container with medias for Products in Hybris.

  2. Set the internalUrl with the value of image url in MediaModel.

I am currently investigating on the change required to show images of external dam in Hybris.

Accepted Solutions (1)

Accepted Solutions (1)

skotni
Explorer

Able to resolve the issue by updating backoffice Content-Security-Policy : (img-src)

Existing CSP: backoffice.response.header.Content-Security-Policy=default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' blob:; connect-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; font-src 'self'

Updated version of the property: [include the external cdn url into img-src] backoffice.response.header.Content-Security-Policy=default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' blob:; connect-src 'self'; img-src 'self' https://www.external-cdn.com data:; style-src 'self' 'unsafe-inline'; font-src 'self'

mohan_gudaru
Explorer
0 Kudos

Hi Sai Krishna Kotni,

Even i was facing the same issue after migrating to 6.7. I have modified the security policy, but still i dont see the thumbnails in PCM backoffice. Do we still need to change anything else?

Thanks,

Mohan

Answers (0)