allowProxy Clientlibs | Community
Skip to main content
Keerthi0555
Level 5
July 22, 2024
Solved

allowProxy Clientlibs

  • July 22, 2024
  • 3 replies
  • 2183 views

How does by adding allow proxy for clientlibs, css, js will be loaded on dispatcher or publisher?

Searched for the internal working of that but didn't found any source.

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 Jagadeesh_Prakash

@keerthi0555 

 

Allowing proxies for ClientLibs means configuring AEM to serve these resources through a proxy URL pattern. This is typically done to namespace and manage access to these resources efficiently. For example, you might serve all client-side resources under a path like /etc.clientlibs/ which is proxied to a more accessible path like /libs/.

 

 

 

3 replies

arunpatidar
Community Advisor
Community Advisor
July 22, 2024

Client libraries under `/apps` should be exposed via `/etc.clientlibs` using the `allowProxy` property. Since `/apps` paths are generally blocked by dispatcher filters for security reasons, without `allowProxy`, this would result in a 404 error. Same applied for publisher but via permissions. To resolve this, clientlibs can be safely exposed from `/apps` through `/etc.clientlibs` using the `allowProxy` property.

Arun Patidar
EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
July 22, 2024
Esteban Bustamante
Jagadeesh_Prakash
Community Advisor
Jagadeesh_PrakashCommunity AdvisorAccepted solution
Community Advisor
July 22, 2024

@keerthi0555 

 

Allowing proxies for ClientLibs means configuring AEM to serve these resources through a proxy URL pattern. This is typically done to namespace and manage access to these resources efficiently. For example, you might serve all client-side resources under a path like /etc.clientlibs/ which is proxied to a more accessible path like /libs/.