Error:
org.apache.sling.auth.core.impl.SlingAuthenticator getAnonymousResolver: Anonymous access not allowed by configuration - requesting credentials
Resolution:
1. Login to AEM
2. Go to "Config Manager" and find for "Sling Authenticator Service"
3. Add the path in "Authentication Requirments"
http://localhost:4502/system/console/configMgr/org.apache.sling.engine.impl.auth.SlingAuthenticator