Question

3
Replies
31
Views
Dharanidharan Murugesan (Dharanidharan)
HCL
Senior System Architect
HCL
IN
Dharanidharan Member since 2014 2 posts
HCL
Posted: May 29, 2021
Last activity: June 1, 2021
Posted: 29 May 2021 3:47 EDT
Last activity: 1 Jun 2021 8:18 EDT

Unable to establish connection to Pega with pega React component

I'm unable to establish connection to Pega with pega-React component, getting the below error. 

"has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource."

APIHeadersAllowed (Cross Origin Resource Sharing) is unmodified to allow all the origin and mapped to api/ endpoint in Endpoint-CORS policy mapping.

Pega Platform 8.5 User Experience Front-End Developer