allowProxy Clientlibs | Community
Skip to main content
Keerthi0555
New Participant
July 22, 2024
Solved

allowProxy Clientlibs

  • July 22, 2024
  • 3 replies
  • 2160 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.

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

Jagadeesh_Prakash
Jagadeesh_PrakashAccepted solution
New Participant
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/.

 

 

 

EstebanBustamante
New Participant
July 22, 2024
Esteban Bustamante
arunpatidar
New Participant
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