CORS error while using datatable API



We are trying to use Datatable API and sending the configuration in the code block using Axios. But we are getting Cors error on localhost and on the build hosted on Github pages. We have tried public tokens with domains as well.


        let config = {

            method: 'get',

            url: `https://${process.env.THREEKIT_ENV}/api/datatables/${datatableId}/row?orgId=${process.env.THREEKIT_ORG_ID}&where=${encodeURIComponent(



            headers: {

              authorization: `Bearer ${privateToken}`,




1 comment

  • Comment author
    William Thompson
    • Edited

    Hi Shiv, 

    Can you refer to this example on the Datatables API documentation and let me know if it is helpful?

    I was able to successfully execute a GET request with a public token pointed to when using the API sandbox on the docs.

    curl --request GET \
       --url '${DATATABLE_ID}/row?orgId=${ORG_ID}' \
         --header 'Accept: application/json' \
       --header 'Authorization: Bearer ${PUBLIC_TOKEN}'

Please sign in to leave a comment.