# Oauth2 code exchange return 403 for different servers

**URL:** <https://devforum.zoom.us/t/oauth2-code-exchange-return-403-for-different-servers/15414>\
**Category:** API and Webhooks\
**Created:** [April 29, 2020, 1:40pm UTC](https://devforum.zoom.us/t/oauth2-code-exchange-return-403-for-different-servers/15414 "2020-04-29T13:40:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![s.kozlov9242](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/s.kozlov9242/32/6511_2.png) [@s.kozlov9242](https://devforum.zoom.us/u/s.kozlov9242)\
**Post date:** [April 29, 2020, 1:40pm UTC](https://devforum.zoom.us/t/oauth2-code-exchange-return-403-for-different-servers/15414/1 "2020-04-29T13:40:38Z")

</div>

**Description**  
I run my app in Docker container during app development and use port forwarding to catch OAuth redirects. Everything works fine on my laptop, but when I deploy SAME container on a server I receive HTML with 403 Forbidden.  
Server IP 176.112.195.11

**Error**  
Get 403 Forbidden on token exchange

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint/s?**  
\<ZOOM\_DOMAIN\>/oauth/token

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Follow the url  
[https://zoom.us/oauth/authorize?client\_id=6yhTLjfJR3CmeF4cUjncmA&redirect\_uri=https%3A%2F%2Fskozlov.dev%2Fzoom%2Fauth&response\_type=code&state=1%3A1bDHR51pc088TOsSOysneLeRTcS%3A1588167519%3A5b7995d6ff584f045a8ff25f2edd73673fcfa4fee25ecd47815f604bae148041](https://zoom.us/oauth/authorize?client_id=6yhTLjfJR3CmeF4cUjncmA&redirect_uri=https%3A%2F%2Fskozlov.dev%2Fzoom%2Fauth&response_type=code&state=1%3A1bDHR51pc088TOsSOysneLeRTcS%3A1588167519%3A5b7995d6ff584f045a8ff25f2edd73673fcfa4fee25ecd47815f604bae148041)

**Additional context**

OAuth2 client for Go /x/oauth2

client\_id: 6yhTLjfJR3CmeF4cUjncmA  
redirect\_url: [https://skozlov.dev/zoom/auth](https://skozlov.dev/zoom/auth)  
code: BN2D4encQA\_QLmej305SWu\_Q1gg6nb14g  
auth\_url: \<ZOOM\_DOMAIN\>/oauth/authorize  
token: \<ZOOM\_DOMAIN\>/oauth/token

PS I use \<ZOOM\_DOMAIN\> placeholder since I’m newbie here

---

<div class="post-metadata">

**Author:** ![s.kozlov9242](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/s.kozlov9242/32/6511_2.png) [@s.kozlov9242](https://devforum.zoom.us/u/s.kozlov9242)\
**Post date:** [April 30, 2020, 5:27am UTC](https://devforum.zoom.us/t/oauth2-code-exchange-return-403-for-different-servers/15414/2 "2020-04-30T05:27:15Z")

</div>

UPDATE

I’ve changed VPS provider and now everything works fine.

---

<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:** [May 4, 2020, 10:16pm UTC](https://devforum.zoom.us/t/oauth2-code-exchange-return-403-for-different-servers/15414/3 "2020-05-04T22:16:13Z")

</div>

Happy to hear you got it working! 🙂

-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, 9:02pm UTC](https://devforum.zoom.us/t/oauth2-code-exchange-return-403-for-different-servers/15414/4 "2020-08-21T21:02:36Z")

</div>

Closed on August 21, 2020, 9:02pm UTC


