To work around this error
Custom port is not allowed or the host is not registered with this consumer key.
Register the app as Desktop/Client application instead of web app.
To work around this error
Custom port is not allowed or the host is not registered with this consumer key.
Register the app as Desktop/Client application instead of web app.
Or you can double check your application URL ( when you are creating the project on the first time ) to match your domain name if you are developing for web. It solved my problem.
Also registering your app as a desktop app worked, but I couldn’t get rid of that nasty warning that scaries the users away.