How is the ClientLibraryProxyServlet used? | Community
Skip to main content
paul_bjorkstra1
New Participant
October 16, 2015
Solved

How is the ClientLibraryProxyServlet used?

  • October 16, 2015
  • 2 replies
  • 2335 views

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.

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 Scott_Brodersen

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

2 replies

Scott_Brodersen
Scott_BrodersenAccepted solution
New Participant
October 16, 2015

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

Sham_HC
New Participant
October 16, 2015