Hi All,
I am trying to set up universal editor in my local and usinig AEM Cloud Service SDK (aem-sdk-2025.9.22758.20250928T092442Z-250900) for local development.
I have done below set up
The problem I am facing is,
The issue doesn't comes up when I am setting up universal editor with AEM 6.5 on prem with SP 21+ and universal editor service package. I am able to successfully load pages running on AEM 6.5 (SP21) inside universal editor service and can successfully edit them as well, but with AEM cloud SDK, I am unable to do so because I cannot go past the AEM login screen inside the universal editor.
Anyone who can help on this ?
Views
Replies
Total Likes
node universal-editor-service.cjs
Views
Replies
Total Likes
Hi Tarun.. thanks for your reply.
I have all these steps what you mentioned, but still it does not work with AEM cloud service SDK in local machine. The AEM login screen is loading inside universal editor when I removed X-Frame-Options=SAMEORIGIN from apache sling main servlet, but the screen is frozen and I cannot click on the username and password field to login. This is expected behaviour as mentioned in this Doc - https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/dev... . However to resolve this, the document says to modify Adobe Granite Token Authentication Handler OSGI Service and set SameSite attribute for the login-token cookie as None.
I have done that as well and as per the document, I should be able to click on the login screen and enter the username and password, but I am still getting this error "Blocked autofocusing on a <input> element in a cross-origin subframe."
Views
Replies
Total Likes
Hi @Ashwani_Agrawal
You need to provide Basic token from local login as authentication header.
Views
Replies
Total Likes
Hi @arunpatidar
That authentication token you mentioned is required when we are making changes via universal editor and want to write those changes back in the AEM JCR.
In my case, the issue is different :
When I am trying to load any content page in the universal editor, it takes me to the AEM login screen where I need to enter user name and password so that my page opens inside universal editor. The problem is that the login screen itself is frozen and I can't enter user name and password to login into my AEM instance inside universal editor. When I check the console, I can see this error "Blocked autofocusing on a <input> element in a cross-origin subframe."
If I go as per the steps mentioned in this document - https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/dev... , to fix this issues, it says to change same-site cookies setting in OSGi configuration com.day.crx.security.token.impl.impl.TokenAuthenticationHandler
I followed that and made the changes as mentioned in this document but still that console error is not gone and I am not able to click anywhere on the AEM login screen
Views
Replies
Total Likes
Hi @Ashwani_Agrawal
Cookie does not work with all the domain, the same site cookie config might be useful when you logged in via cloud manager AEM instance, so authentication cookie might be shared.
But in your case you are loading from local and then you need to tell Universal editor to use some kind of local authentication/authorize header even if you are not editing the pages otherwise you would always end up in login screen with AEM author urls.
Views
Replies
Total Likes