Profile Card component | Community
Skip to main content
Level 3
August 3, 2023
Solved

Profile Card component

  • August 3, 2023
  • 2 replies
  • 1325 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AsifChowdhury

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.

2 replies

AsifChowdhury
Community Advisor
AsifChowdhuryCommunity AdvisorAccepted solution
Community Advisor
August 3, 2023

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.

SivakumarKanoori
Community Advisor
Community Advisor
August 4, 2023

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

Thanks,Siva
Level 3
August 4, 2023

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

Thanks!

SivakumarKanoori
Community Advisor
Community Advisor
August 4, 2023

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

How do you say that its clientlib issue, 

 

 

 

Thanks 

Siva

Thanks,Siva