A developer creates a Sling Servlet. The Sling Servlet is bound to a path (/service/sling/sample). Refer to the resulting code below.
What should the developer do to make the servlet access controlled using the default ACLs?
A developer creates a Sling Servlet. The Sling Servlet is bound to a path (/service/sling/sample). Refer to the resulting code below.
What should the developer do to make the servlet access controlled using the default ACLs?
To make the Sling Servlet access controlled using the default ACLs, a developer should use @SlingServletResourceTypes instead of @SlingServletPaths. Using @SlingServletPaths bypasses the default ACL security checks on content resources, while @SlingServletResourceTypes ensures that the servlet adheres to the access control defined in the repository, making it aligned with the default ACL permissions.
Answer: A
Answer: A