Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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/dev... but at the very end, there's this error clinking on Teaser:

AlessandroGi1_0-1721463931376.png

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.

AlessandroGi1_1-1721464102518.png

OPTIONS header:

AlessandroGi1_2-1721464253275.png

POST header:

AlessandroGi1_3-1721464309449.png

What I'm doing wrong?

Regards,

Alessandro

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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/dev...

View solution in original post

7 Replies

Avatar

Community Advisor

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-fo...

Thanks

Avatar

Level 2

Hi @MukeshYadav_ 

I did it, accordingly with the tutorial.

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

Regards

Alessandro

Avatar

Community Advisor

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-...

 

Thanks

Avatar

Community Advisor

@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/dev...

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

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

Avatar

Level 2

@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/dev... no local universal service is needed and the broken request is to local AEMCS instance.

Regards

Alessandro

Avatar

Correct answer by
Community Advisor

@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/dev...