Universal Editor, CORS Missing Allow Origin on https://localhost:8443/details | Community
Skip to main content
AlessandroGi1
Level 2
July 20, 2024
Solved

Universal Editor, CORS Missing Allow Origin on https://localhost:8443/details

  • July 20, 2024
  • 2 replies
  • 2878 views

I'm trying to setup local wknd for Universal Editor.

I'll follow every step in tutorial at https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/developing/universal-editor/developer-overview, but at the very end, there's this error clinking on Teaser:

The error was generated by the response at the POST to https://localhost:8443/details because of CORS Missing Allow Origin.

Same OPTIONS request, just before the POST is ok.

OPTIONS header:

POST header:

What I'm doing wrong?

Regards,

Alessandro

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AMANATH_ULLAH

@alessandrogi1 

When you try to access local wknd site through global universal editor, it will still need local universal editor service to be up

Please see the Prerequisites section of the tutorial you are following

Use this link to setup local universal editor service

Local AEM Development with the Universal Editor | Adobe Experience Manager 

Once the local universal editor service is up and running, you can use global universal editor to load your local wknd page and update content and follow the same tutorial 

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/developing/universal-editor/developer-overview

2 replies

MukeshYadav_
Community Advisor
Community Advisor
July 20, 2024

Hi @alessandrogi1 ,

Hope Delete the property X-Frame-Options=SAMEORIGIN of the property Additional response headers was performed successfully.

You may try as post request is failing https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/post-servlet-giving-403-forbidden-error-during-post-ajax-call/m-p/449889

Thanks

AlessandroGi1
Level 2
July 20, 2024

Hi @mukeshyadav_ 

I did it, accordingly with the tutorial.

I can't modify /details, it's a core/builtIn request, not mine.

Regards

Alessandro

MukeshYadav_
Community Advisor
Community Advisor
July 21, 2024

Hi @alessandrogi1 ,

I haven't asked to change request. Just try once by changing configuration as per mentioned below 

https://localhost:8443/system/console/configMgr

https://sourcedcode.com/blog/video-tutorial/how-to-make-simple-http-post-methods-in-aem-with-a-http-rest-client

 

Thanks

AMANATH_ULLAH
Community Advisor
Community Advisor
July 20, 2024

@alessandrogi1 

The issue you are facing is because your local universal editor service is not running

Follow the below steps to enable local universal editor

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/developing/universal-editor/local-dev

Local universal editor service will run on https://localhost:8000

Once its setup, you should be able to fetch and update the content

Amanath Ullah
AlessandroGi1
Level 2
July 20, 2024

@amanath_ullahI'm using the Global Universal Editor, not the local one.

I've follow this tutorial, https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/developing/universal-editor/developer-overview, no local universal service is needed and the broken request is to local AEMCS instance.

Regards

Alessandro

AMANATH_ULLAH
Community Advisor
AMANATH_ULLAHCommunity AdvisorAccepted solution
Community Advisor
July 21, 2024

@alessandrogi1 

When you try to access local wknd site through global universal editor, it will still need local universal editor service to be up

Please see the Prerequisites section of the tutorial you are following

Use this link to setup local universal editor service

Local AEM Development with the Universal Editor | Adobe Experience Manager 

Once the local universal editor service is up and running, you can use global universal editor to load your local wknd page and update content and follow the same tutorial 

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/developing/universal-editor/developer-overview

Amanath Ullah