Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Profile Card component

Avatar

Level 4

Images on the Profile Card component are not loading due to client lib issue on AEM-STAGE and AEM-PROD.

So, please help regarding this issue.

Also, please help me out with your suggestions.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Shreyas_tm 

Add allowProxy="{Boolean}true"  in your component's clientlib. And clear the cache to make sure the previous clientlib is not cached.

Why:

In order for the client libraries under /apps to be accessible, a proxy servelt is used. The ACLs are still enforced on the client library folder, but the servlet allows for the content to be read via /etc.clientlibs/ if the allowProxy property is set to true.

In order for the client libraries to be accessible via proxy under /etc.clientlibs, select the cq:ClientLibraryFolder node, add the following property, and then click Save All:

  • Name: allowProxy
  • Type: Boolean
  • Value: true

allowProxy: If a client library is located under /apps, this property allows acces to it via proxy servlet.

View solution in original post

6 Replies

Avatar

Correct answer by
Community Advisor

Hi @Shreyas_tm 

Add allowProxy="{Boolean}true"  in your component's clientlib. And clear the cache to make sure the previous clientlib is not cached.

Why:

In order for the client libraries under /apps to be accessible, a proxy servelt is used. The ACLs are still enforced on the client library folder, but the servlet allows for the content to be read via /etc.clientlibs/ if the allowProxy property is set to true.

In order for the client libraries to be accessible via proxy under /etc.clientlibs, select the cq:ClientLibraryFolder node, add the following property, and then click Save All:

  • Name: allowProxy
  • Type: Boolean
  • Value: true

allowProxy: If a client library is located under /apps, this property allows acces to it via proxy servlet.

Avatar

Community Advisor

@Shreyas_tm : Is it loading fine in the AEM  author preview mode ? 

Thanks,
Siva

Avatar

Level 4

In author mode it is loading fine, but when we view it as published , the image is not loading.

Thanks!

Avatar

Community Advisor

@Shreyas_tm : Did you observer any errors in console or error.log.

How do you say that its clientlib issue, 

 

 

 

Thanks 

Siva

Thanks,
Siva

Avatar

Level 4

The thing is, we didn't get any errors regarding it. Instead we were not able to load components on published pages. So, we thought it might be due to client lib issue and just split the components.

 

Thanks!

Avatar

Community Advisor

@Shreyas_tm  : 

When you view as published , Can you check view source and check the image path , is it pointing to correct dam path or shortening the image path ?

 

Thanks 

Siva

Thanks,
Siva