Get all recordings using JWT Token using AJAX request

Abhishek
Tue, 06 Jul 2021 05:52:46 +0000
API and Webhooks

Using this template helps us debug your issues more effectively

Description
I am trying to get all zoom recordings using JWT token . I am using AJAX Request

Error
Currrently i am getting : URL has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Which App Type (OAuth / Chatbot / JWT / Webhook)?
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

Which Endpoint/s?
https://api.zoom.us/v2/accounts/me/recordings

How To Reproduce (If applicable)
Steps to reproduce the behavior:
AJAX Request:

$.ajax({
type: “GET”,
url: “https://api.zoom.us/v2/accounts/me/recordings”,
headers: {
“Access-Control-Allow-Origin”: ‘*’,
‘Authorization’: 'Bearer ’ + token,
‘content-type’ : ‘application/json’,
},
dataType: ‘json’,
success: function (result, status, xhr) {
ShowData(result);
},
error: function (xhr, status, error) {
alert(error);
}
});

Am i doing something wrong ?

5 posts - 3 participants