CORS Policy blocking Salesforce Origin URL

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

Hi Ashish,

What exactly are you trying to do? Are you trying to invoke the Genesys Cloud endpoint using the user's credentials or a client credential grant? Anymore detail you can provide would be helpful?

Thanks,
John

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.