API call failing with json error

Anyone else experiencing this?

I am doing a basic API call (POST) to our database server to retrieve a auth token. I have two http headers: “Authorization” and “Content-type”. In postman this call returns the token successfully. In Appgyver it fails. Is anyone else experiencing this?

Hi @Andrew_A, I think I might have responded to you in another thread on the same topic, but the Content-type header is redundant (results in it being sent twice). Try reconfiguring the resource without adding the Content-type :slight_smile:

thanks for the response. I did try removing the additional application/json error but to no avail. Interestingly I now have a new error with the same call in Chrome:

Error: TypeError: Failed to fetch. Does the server allow CORS?status: undefined

Resource settings for Create record (POST)

Resource URL: [redacted]
Relative path: /databases/[redacted]/sessions