# Redirect URI mismatch - is it related to AngularJS routing?

**URL:** <https://devforum.zoom.us/t/redirect-uri-mismatch-is-it-related-to-angularjs-routing/74280>\
**Category:** API and Webhooks\
**Created:** [August 16, 2022, 6:34am UTC](https://devforum.zoom.us/t/redirect-uri-mismatch-is-it-related-to-angularjs-routing/74280 "2022-08-16T06:34:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![or1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/or1/32/37197_2.png) [@or1](https://devforum.zoom.us/u/or1)\
**Post date:** [August 16, 2022, 6:34am UTC](https://devforum.zoom.us/t/redirect-uri-mismatch-is-it-related-to-angularjs-routing/74280/1 "2022-08-16T06:34:00Z")

</div>

### I get the Redirect URI Mismatch error:

**Description**  
When redirecting the user to OAuth for Zoom and return to callback page, on our staging environment it doesn’t work and returns with the URI mismatch error. However, when trying it on my machine, on localhost, it works perfectly - just the staging site is returning that error.  
I triple checked all the credentials, everything is correct, nothing is different than the localhost environment settings/endpoint/whitelist pages - totally everything is the same! But still, on staging environment I get the issue.  
One of my concerns is that our system has an old infrastructure and its built with AngularJS so the routing has hash (“#”) in the URL and it might make some troubles.  
But again, in localhost it has the same hash character in the URL and it works

**Error?**  
resulted in a `400 Bad Request` response:\n{"reason":"Invalid request : Redirect URI mismatch.","error":"invalid\_grant"}\n"}

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 17, 2022, 1:44pm UTC](https://devforum.zoom.us/t/redirect-uri-mismatch-is-it-related-to-angularjs-routing/74280/2 "2022-08-17T13:44:31Z")

</div>

Hi @or1  
Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!  
Can you please make sure that the redirect URI from your staging environment is also added in your allow list???

---

<div class="post-metadata">

**Author:** ![or1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/or1/32/37197_2.png) [@or1](https://devforum.zoom.us/u/or1)\
**Post date:** [August 22, 2022, 6:59am UTC](https://devforum.zoom.us/t/redirect-uri-mismatch-is-it-related-to-angularjs-routing/74280/3 "2022-08-22T06:59:43Z")

</div>

Hi Elisa,  
Yes, i made sure that everything is in the allow list. From the base domain to subdomain.  
Thanks

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 22, 2022, 11:15am UTC](https://devforum.zoom.us/t/redirect-uri-mismatch-is-it-related-to-angularjs-routing/74280/4 "2022-08-22T11:15:17Z")

</div>

Hi @or1  
Thank you for confirming that with me.  
Have you tried replicating the issue with our sample app?

> **[GitHub - zoom/meetingsdk-angular-sample: Use the Zoom Meeting SDK in an...](https://github.com/zoom/meetingsdk-angular-sample)**
>
> Use the Zoom Meeting SDK in an Angular App. Contribute to zoom/meetingsdk-angular-sample development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 26, 2023, 2:52am UTC](https://devforum.zoom.us/t/redirect-uri-mismatch-is-it-related-to-angularjs-routing/74280/5 "2023-08-26T02:52:18Z")

</div>

Closed on August 26, 2023, 2:52am UTC

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