Fetching user account info from a react spa

I’m creating a app where the user uses internal gateway to get token access and in the front-end I want to fetch the user data, but i’m getting an error

Access to XMLHttpRequest at ‘https://api.zoom.us/v2/users/me’ from origin …

const user = await axios.get(‘https://api.zoom.us/v2/users/me’, {
headers: {
Authorization: Bearer ${token},

what I’m doing wrong here?

Hey @youry.stancatte,

It sounds like you are making request to our API from the frontend (client side). You need to make the API requests from the backend (server side) or you will receive a CORS error.


This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.