Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How is the ClientLibraryProxyServlet used?

Avatar

Level 1

In 5.6, there was a client lib proxy servlet called ClientLibraryProxyServlet added. According to http://docs.adobe.com/docs/en/cq/5-6/release_notes/wcm.html#par_text_7 it says "GRANITE-1666 - Clientlibrary: New Proxy Servlet to serve client libs hosted under /libs and /apps". Is this something that is automatically working or is there some special configuration needed. We are using 5.6.1, and it did not seem to be working.

1 Accepted Solution

Avatar

Correct answer by
Level 8

Here is some information that I received:

The purpose is to serve client libs hosted under /libs and /apps

  • add the property: allowProxy = 'true' to a clientlib
  • the clientlib will then be proxied via /etc.clientlibs/..., bypassing access control set on the clientlib.

example: 

Assume you have clientlib in /apps/myproject/clientlibs/foo. then you set the property /apps/myprojects/clientlibs/foo/allowProxy to true and then you can request: /etc.clientlibs/myprojects/clientlibs/foo.js.

I have created a documentation issue to have the information added to the docs.

Hope that helps,

scott

View solution in original post

2 Replies

Avatar

Correct answer by
Level 8

Here is some information that I received:

The purpose is to serve client libs hosted under /libs and /apps

  • add the property: allowProxy = 'true' to a clientlib
  • the clientlib will then be proxied via /etc.clientlibs/..., bypassing access control set on the clientlib.

example: 

Assume you have clientlib in /apps/myproject/clientlibs/foo. then you set the property /apps/myprojects/clientlibs/foo/allowProxy to true and then you can request: /etc.clientlibs/myprojects/clientlibs/foo.js.

I have created a documentation issue to have the information added to the docs.

Hope that helps,

scott