# Create schedule meeting getting : 403 forbidden error and in response: Invalid CORS request

**URL:** <https://devforum.zoom.us/t/create-schedule-meeting-getting-403-forbidden-error-and-in-response-invalid-cors-request/3860>\
**Category:** API and Webhooks\
**Created:** [April 4, 2019, 7:03am UTC](https://devforum.zoom.us/t/create-schedule-meeting-getting-403-forbidden-error-and-in-response-invalid-cors-request/3860 "2019-04-04T07:03:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![goalstreets](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@goalstreets](https://devforum.zoom.us/u/goalstreets)\
**Post date:** [April 4, 2019, 7:03am UTC](https://devforum.zoom.us/t/create-schedule-meeting-getting-403-forbidden-error-and-in-response-invalid-cors-request/3860/1 "2019-04-04T07:03:13Z")

</div>

```
        const url1="https://api.zoom.us/v2/users/example@gmail.com/meetings"
        $.ajax({
            url:url1,
            type: "POST",
            data:JSON.stringify(datainfo),
             username: "example@gmail.com",
            dataType: "json",
            beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', "Bearer <token>");
              xhr.setRequestHeader("Content-Type","application/json")
        },
          success: function (reponse) {
            
                      console.log(reponse)
                  }
              });
```

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [April 5, 2019, 2:34am UTC](https://devforum.zoom.us/t/create-schedule-meeting-getting-403-forbidden-error-and-in-response-invalid-cors-request/3860/2 "2019-04-05T02:34:13Z")

</div>

Hi,

Can you try the following:

1. Install an interceptor extension to chrome, then enable it.

2. Then add an “Origin” header to your request as below:  
Origin : [https://developer.zoom.us](https://developer.zoom.us)

Let me know if it helps

---

<div class="post-metadata">

**Author:** ![goalstreets](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@goalstreets](https://devforum.zoom.us/u/goalstreets)\
**Post date:** [April 5, 2019, 11:00am UTC](https://devforum.zoom.us/t/create-schedule-meeting-getting-403-forbidden-error-and-in-response-invalid-cors-request/3860/3 "2019-04-05T11:00:53Z")

</div>

![Capture1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/2dd360eb3fa286d91e5884666c8bd19ccf9b0a50.jpeg)

This is the error getting after following that two steps

---

<div class="post-metadata">

**Author:** ![kevin.cassidy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kevin.cassidy/32/1057_2.png) [@kevin.cassidy](https://devforum.zoom.us/u/kevin.cassidy)\
**Post date:** [August 15, 2019, 4:49pm UTC](https://devforum.zoom.us/t/create-schedule-meeting-getting-403-forbidden-error-and-in-response-invalid-cors-request/3860/4 "2019-08-15T16:49:09Z")

</div>

@goalstreets did you ever figure this out? I’m having the same issues.

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [August 15, 2019, 5:53pm UTC](https://devforum.zoom.us/t/create-schedule-meeting-getting-403-forbidden-error-and-in-response-invalid-cors-request/3860/5 "2019-08-15T17:53:17Z")

</div>

Hi @kevin.cassidy,

Are you trying to make APIs calls using AJAX or on the client side?

Thanks

---

<div class="post-metadata">

**Author:** ![Jake.n](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jake.n/32/10631_2.png) [@Jake.n](https://devforum.zoom.us/u/Jake.n)\
**Post date:** [June 17, 2020, 6:06pm UTC](https://devforum.zoom.us/t/create-schedule-meeting-getting-403-forbidden-error-and-in-response-invalid-cors-request/3860/6 "2020-06-17T18:06:46Z")

</div>

HI  
I’m running in to the same problem of CORS  
i want to create a meeting from the front end angular app. when i use ARC or postman I receive a status of 201 and everything is fine, but from the localhost I’m getting a CORS error  
**Access to XMLHttpRequest at ‘[https://api.zoom.us/v2/users/me/meetings](https://api.zoom.us/v2/users/me/meetings)’ from origin ‘[http://localhost:4200](http://localhost:4200)’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status**

can I call the zoom api from the front end?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 19, 2020, 7:58pm UTC](https://devforum.zoom.us/t/create-schedule-meeting-getting-403-forbidden-error-and-in-response-invalid-cors-request/3860/7 "2020-06-19T19:58:18Z")

</div>

Hey @Jake.n,

You cannot call the Zoom API from the frontend. You must setup a proxy server to have a backend make the API request to the Zoom API.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![Jake.n](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jake.n/32/10631_2.png) [@Jake.n](https://devforum.zoom.us/u/Jake.n)\
**Post date:** [June 21, 2020, 8:22am UTC](https://devforum.zoom.us/t/create-schedule-meeting-getting-403-forbidden-error-and-in-response-invalid-cors-request/3860/8 "2020-06-21T08:22:48Z")

</div>

Thank you for your quick respond.  
So even if i download Zoom Web SDK, or a different npm package I wont be able to make a request?  
If yes, then is this permanently, because of security?  
It works fine with postman and ARC.

Thank you  
Jake

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 23, 2020, 9:30pm UTC](https://devforum.zoom.us/t/create-schedule-meeting-getting-403-forbidden-error-and-in-response-invalid-cors-request/3860/9 "2020-06-23T21:30:04Z")

</div>

Hey @Jake.n,

Correct, the Web SDK is different from the APIs. The Web SDK puts Zoom meetings in your website, whereas the API allows you to take authorized actions on Zoom users behalf.

Postman is making requests via a backend server. Postman is not the frontend.

Thanks,  
tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:24pm UTC](https://devforum.zoom.us/t/create-schedule-meeting-getting-403-forbidden-error-and-in-response-invalid-cors-request/3860/10 "2020-08-21T22:24:39Z")

</div>

Closed on August 21, 2020, 10:24pm UTC


