Hi Guys,
I am trying to access zoom REST API (Get /users/{userId}/meetings) from my localhost application. But it 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. What is the root cause for this issue? Please support to resolve it.
Thanks
Hi @p.abdulghani,
Can you share the payload that you’re sending?
Hi Michael,
I am accessing REST API in java web application as follows. Access token getting expired after some mins. I need to get access token often from zoom site. Instead of it, is there any method (implemented in Java) to get access token for each request?
HttpResponse<String> response = Unirest.get("https://api.zoom.us/v2/users/{userId}/meetings?page_size=30&page_number=1")
.header("authorization", "Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdWQiOiJodHRwczovL29hdXRoLnpvb20udXMiLCJhY2NvdW50SWQiOiIteTBxYUJmRlRUNmtEYVh2cE1qaHdBIiwidmVyIjoiMy4wIiwibmJmIjoxNTUwNjMxNjQ5LCJjbGllbnRJZCI6IkZENWk4MGFjUldkSkZxMTJTV2xJZyIsImlzcyI6InVybjp6b29tOmNvbm5lY3Q6Y2xpZW50aWQ6RkQ1aTgwYWNSV2RKRnExMlNXbElnIiwiZW52IjpbbnVsbF0sImV4cCI6MTU1MDYzNTI0OSwidG9rZW5UeXBlIjoiYWNjZXNzX3Rva2VuIiwiaWF0IjoxNTUwNjMxNjQ5LCJ1c2VySWQiOiJhMVRrUDB2dlFyZTNsZ1Y0S3hMQ0tBIiwianRpIjoiYWU4ZmY1YzktODI0YS00MjI3LWI5NjctYzRlNmU5NTE3OTk4In0._SqGJQTNe2kk4pyipRWMPwr_Mku1LXwH8U6NEvhrAOMc0DjaezXXFOBcvxjM76hdEZ3a4zYPyC-9Vm2crmHVSQ")
.asString();
Thanks
Abdulghani