Forum Stats

  • 3,677,997 Users
  • 7,898 Discussions


Getting CORS error when Oauth 2.0 /token endpoint is called

Hi, We have a eloqua app installed. We are using Oauth 2.0. Our app build is deployed on our server. When user authorizes the when the app is clicked in Eloqua, we try to hit the token endpoint to get the access_tokens and refresh_token so that we can store them. But we see following error in the browser console.

Access to XMLHttpRequest at '' from origin '' 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.

Please can you suggest how can we handle this?