Unable to query droplets API - CORS error

Posted August 19, 2019 964 views

I am trying to query the droplets on my account ( - I am using jquery with crossDomain set to true. This call used to work correctly, but is now returning a CORS error. I am able to use the same jquery code to call the account API with no issues, so I know that my credentials and headers are being set correctly…

Has the access to the droplets API changed?

  • Here is a bit more info. The following fails:

                    type: "GET",
                    url: "",
                    crossDomain: true,
                    contentType: 'application/json',
                    beforeSend: function (xhr) {
                        xhr.setRequestHeader ("Authorization", "Bearer <MY TOKEN>");
                    error: function (jqXHR, textStatus, errorThrown) {
                    success: function (data) {

    But running in curl succeeds:

    curl -H "Origin: http://localhost:3000" -H "Authorization: Bearer <MY TOKEN>" -H "Content-Type: application/json" -X GET ""
    edited by MattIPv4
  • Hey @sconrad, we are looking into this internally and will share an update with the Community here once we have one :)

  • Any updates on this? Thanks!

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!