Question
3
Replies
82
Views
Posted: September 7, 2020
Last activity: October 12, 2020
Solved
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 ?
***Edited by Moderator Marissa to update Platform Capability tags****
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