Legacy Dev Forum Posts

 View Only

Sign Up

CORS Policy blocking Salesforce Origin URL

  • 1.  CORS Policy blocking Salesforce Origin URL

    Posted 06-05-2025 19:23

    ashish.takke | 2023-03-30 01:19:37 UTC | #1

    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


    John_Carnell | 2023-03-30 17:02:43 UTC | #2

    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


    system | 2023-04-30 17:03:03 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 19212