Zendesk API CORS issue
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
Iniciar sesión para dejar un comentario.
0 Comentarios