cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

After migrating from 6.6 to Hybris 6.7, Images are not getting displayed in PCM backoffice.

mohan_gudaru
Explorer
0 Kudos
503

Hi ,

We have an opentext integration with Hybris. And we are not storing the Media in Hybris. We just render the URL's from opentext. Recently we migrated to Hybris 6.7 and we have migrated complete data folder from 6.6. But the images are not getting rendered in PCM backoffice. There is a security policy property change in 6.7 and i have changed it as below.

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

After that, i can see the image when i open the media. but thumbnails are still not getting rendered. Any help would be appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

mohan_gudaru
Explorer
0 Kudos

@ Leo Ryan

there is change in the Header content security policy in 6.7.

See the bolded text that needs to be added.

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

former_member633554
Active Participant
0 Kudos

Thanks Mohan. After investigating further it looks like some url issue in our instance.

6.7 wants a celum asset url like this

backoffice/mam/celum/celum_assets/9882614988830_IMAGE_37614_jpg.jpg?13

But that won't render, this will. I'm not sure what has changed in backoffice that it wants that format.

/mam/celum/celum_assets/9882614988830_IMAGE_37614_jpg.jpg?13