Note that a URI is not a domain, but this seems to be a common mistake when setting up OAuth2.
`redirect_uri` is not under the registered domain for this application
What exactly is a valid OAuth domain name for registering your app?
Can the redirect_uri contain port number? This answer has detailed instructions on how to set-up and use ...