Fetch Current user in AEM Publish On PageLoad in AEM 6.5.9
Hi , I am using '/libs/granite/security/currentuser.json' to fetch current user in js. I see it is returning user as expected in Author instance where as In Publish it always returns 'anonymous'.
I tried logging into Publish AEM but still the user state is not persisting. Is there a way we can achieve this ?
Version of AEM : 6.5
ServicePack : AEM 6.5 Service Pack 9 (6.5.9.0)
Thanks