# Started getting "Invalid redirect: https://faria.managebac.com/teacher/zoom/pair (4,700)"

**URL:** <https://devforum.zoom.us/t/started-getting-invalid-redirect-https-faria-managebac-com-teacher-zoom-pair-4-700/26684>\
**Category:** API and Webhooks\
**Created:** [August 10, 2020, 6:49am UTC](https://devforum.zoom.us/t/started-getting-invalid-redirect-https-faria-managebac-com-teacher-zoom-pair-4-700/26684 "2020-08-10T06:49:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [August 10, 2020, 9:35pm UTC](https://devforum.zoom.us/t/started-getting-invalid-redirect-https-faria-managebac-com-teacher-zoom-pair-4-700/26684/5 "2020-08-10T21:35:30Z")

</div>

Hey @sergii.iakovyn,

Instead of setting `any.domain.com` as your whitelist, try setting the base domain, `domain.com` and putting `any.domain.com` as the default production redirect url.

> [@Does zoom support more than two environments for oauth2?](https://devforum.zoom.us/t/does-zoom-support-more-than-two-environments-for-oauth2/11052/12):
>
> Hey @tuancode, @michael.solomon, This is totally possible! slight_smile Let me walk you through how to do this with the base domain of example.com For your whitelist, simply add your base domain: https://example.com Then in your dev/prod redirect url field, add a default redirect, https://any.example.com (this will be programmatically overridden to the correct sub domain, continue reading below) Now, with your install URL ([the url mentioned in Step 1. of the OAuth guide](https://marketplace.zoom.us/docs/guides/auth/oauth#getting-access-token)) in your code, dyna…

Let me know if that fixes the issue. 🙂

Thanks,  
Tommy

---

_[View the full topic](https://devforum.zoom.us/t/started-getting-invalid-redirect-https-faria-managebac-com-teacher-zoom-pair-4-700/26684)._
