Hello All,
We are integrating Salesforce with Genesys to send email interactions to Genesys. As a first step, we want to get access token from genesys by authorising user with client details. While sending HTTPRequest built using Javascript in Salesforce, we are getting CORS Policy blocking SF origin error.
Is there anyone who knows, how can we fix this error? Or Is there any setting/setup in Genesys cloud where we can add SF URL to allow HTTPRequest from SF?
Below is the error message:
Access to XMLHttpRequest at 'https://login.mypurecloud.com.au/oauth/authorize?response_type=token&grant_type=Implicit&client_id=********&redirect_uri=https://test.salesforce.com/services/oauth2/callback' from origin 'https://.sit.sandbox.lightning.force.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Thanks,
Ashish