URL Handler System Configuration
Service user configuration
The URL handler required a service user mapping for detecting client libraries located at /apps or /libs with “allowProxy” mode, to rewrite resource URLs pointing to them to /etc.clientlibs.
Create a service user mapping for the factory configuration org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended with an entry like this:
The service user sling-scripting that comes with AEM can be used for this.
This configuration is required on both author and publish instances.