Issues in getting access_token fromm OAUTH flow

Hi there

We successfully follow this guide but in step 4-5 (OAuth authorization) we are facing some issues:

  1. If we pass the based64-edAuthorization header and hit the endpoint at https://oauth.pipedrive.com/oauth/token with a POST request and an additional content-type header of application/x-www-form-urlencoded we receive an error in the POST request as its PREFLIGHT request is rejected: , basically the endpoint on PD’s end does no support the Authorization header on PREFLIGHT requests…
  2. If we instead do what is suggested as an alternative, passing client_id and client_secret in the body request we get an error claiming that the cors origin (localhost) in his case, is not allowed…

Suggestions welcome :joy:

Hi,
You would find this response helpful

Feel free to create a new topic if you still face issues.