Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

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 Akzeptierte Lösung

Avatar

Korrekte Antwort von
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

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten

Avatar

Korrekte Antwort von
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

Avatar

Level 10