Hi,
As previously we were creating clientLibs under /etc/designs, and to allow these styles in dispatcher : we use to allow something like
# design and template assets /0050 { /type "allow" /glob "GET /etc/designs/*" } # collected JS/CSS from the components and design /0051 { /type "allow" /glob "GET /etc/clientlibs/*" }
Now, since we moved all the clientLibs specific to component level.
exmaple: /apps/myproject/clientLibs or /apps/myproject2/clientLibs2 or /apps/myproject3/clientLibs3
In that case how to allow all the clientlibs in dispatcher.any file, ClientLibs i.e. under the /apps folder to different different component.
Thanks
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @tushaar_srivastava ,
Clientlibs under /apps should have the "allowProxy" property and will be invoked via a proxy servlet.
It is recommended to locate client libraries under /apps and expose them via /etc.clientlibs by leveraging the allowProxy property.
So if the file is like /apps/projects/clientlibs/base/resources/icon.png then it will be accessed via /etc.clientlibs/projects/clientlibs/base/resources/icon.png
Along with this you will need to add the below rules in dispatcher.
Please refer the below link for more details:
Thanks,
Asutosh
Hi @tushaar_srivastava ,
Clientlibs under /apps should have the "allowProxy" property and will be invoked via a proxy servlet.
It is recommended to locate client libraries under /apps and expose them via /etc.clientlibs by leveraging the allowProxy property.
So if the file is like /apps/projects/clientlibs/base/resources/icon.png then it will be accessed via /etc.clientlibs/projects/clientlibs/base/resources/icon.png
Along with this you will need to add the below rules in dispatcher.
Please refer the below link for more details:
Thanks,
Asutosh
Views
Replies
Total Likes
Views
Likes
Replies