CORS policy blocked with the REST call

I am trying to make Pega CTI agent login and while logging in it throws error in the console as

“Access to XMLHttpRequest at ‘https://sxxxxxx.abc.com/http-bind/’ from origin ‘https://abc.pegacloud.net’ 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.”

Any idea on how this can be resolved ? any specific document ?

Hi Yepuri,

Actually you need to adjust the sxxxx.abc.com CORS settings and have it include the appropriate Access-Control headers. The browser will attempt a so called ‘pre-flight’ check (OPTIONS request) to fetch these headers, to verify that the cross original request is accepted.

So no specific configuration is needed on the Pega side.

Kind regards,

Eric

Thanks Eric. This really helped me.

Issue is resolved after updating the target response to send proper access control header.

Yepug - can you please mentioned some steps on how did you resolve this issue? i am also facing same issue on accessing DX API from react js framework