Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How to make available JS located under /libs

Avatar

Level 2

The question, in general, would be: for security reasons, we have on Publisher instance an ACL denying read access to everyone to /libs folder. If I want to use a clientlib located under /libs I cannot insert it just as a dependency of my own clientlib (located under /etc) because the user won't have access to it, so what's the best practice to use these clientlibs?

My use case is that my clientlib has as dependency "personalization.core.kernel" because I want to leverage CQ_Analytics on frontend.

1 Accepted Solution

Avatar

Correct answer by
Employee

You can use the embed option of a clientlib, then it will be merged at runtime.

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

You can use the embed option of a clientlib, then it will be merged at runtime.