Búsquedas recientes


No hay búsquedas recientes

Zendesk API CORS issue



Publicado 06 mar 2023

Having a CORS issue when trying to fetch ticket data with the following API request from an Angular Web app, but the same thing works on the postman. Here I am using an API token from zendesk for authentication after having it encoded64. Where can I be doing wrong
Pasting the cURL:
curl 'https://support75f.zendesk.com/api/v2/search.json?query=type:ticket%20fieldvalue:Adriance&sort_by=updated_at&sort_order=desc' \
  -H 'sec-ch-ua: "Chromium";v="110", "Not A(Brand";v="24", "Google Chrome";v="110"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'Authorization: Basic bWNoYW5kcmFzZWthckA3NWYuaW8vdG9rZW46cHhlamlkMVhRV3hzYjVjbkRIUUdNQzFsVXdXV0o5Wm5mWmtzSTB6cw==' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36' \
  -H 'Content-Type: application/json' \
  -H 'Access-Control-Allow-Origin: *' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'Referer;' \
  -H 'sec-ch-ua-platform: "macOS"' \
  --compressed


1

1

1 comentario

im also facing the same issue. Waiting for the support.zendesk responce

https://{url}.zendesk.com/api/v2/help_center/users/15344523818135/articles net::ERR_FAILED 200

0


Iniciar sesión para dejar un comentario.

¿No encontró lo que buscaba?

Nueva publicación