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.
Solved! Go to Solution.
Views
Replies
Total Likes
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:
allowProxy: If a client library is located under /apps, this property allows acces to it via proxy servlet.
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:
allowProxy: If a client library is located under /apps, this property allows acces to it via proxy servlet.
@Shreyas_tm : Is it loading fine in the AEM author preview mode ?
In author mode it is loading fine, but when we view it as published , the image is not loading.
Thanks!
@Shreyas_tm : Did you observer any errors in console or error.log.
How do you say that its clientlib issue,
Thanks
Siva
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!
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
Views
Likes
Replies
Views
Likes
Replies