Skip to main content
Question

CORS Error

  • January 21, 2025
  • 1 reply
  • 36 views

Forum|alt.badge.img+1

Getting the cors error while getting the access token. Please check the following screenshot

Cors Error

Added the origin URI’s in the Docusign APP.

Enabled the CORS.

Eventhough getting the error.

 

Could you please help me in resoving it?

1 reply

Forum|alt.badge.img+7
  • Docusign Employee
  • 68 replies
  • January 22, 2025

CORS is not needed for the /oauth/auth. You need to open this page either in a current browser window or a new browser window. You should not call this URL like the Docusign eSignature API in your SPA. Once the /oauth/auth page is opened, the user is routed to the Docusign login page and requestsed to grant consent. After the user grants consent, the page will redirect to the return URL that you specified in the /oauth/auth URL.

Public Authorization Code Grant: https://developers.docusign.com/platform/auth/authcode/
Single-page applications and CORS: https://developers.docusign.com/platform/single-page-applications-cors/