Oauth2 code exchange return 403 for different servers

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

Get 403 Forbidden on token exchange

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

Which Endpoint/s?

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

  1. Follow the url

Additional context

OAuth2 client for Go /x/oauth2

client_id: 6yhTLjfJR3CmeF4cUjncmA
redirect_url: 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


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

1 Like

Happy to hear you got it working! :slight_smile: