OAuth Access Code working on Localhost but not working on server (e.g. nodechef)
OAuth Access Code working on Localhost but not working on server (e.g. nodechef) I'm developing a Web App using React and Meteor JS. On my localhost, I would call Patreon's Oauth API with a redirect link and after the user logs in and allows access to his profile, the user will be redirected to http://localhost:3000. From there I would get the access code from the URL and then make query calls to the API and it would work smoothly. Because it works, I decided to test it on a actual server like nodechef. To my surprise, after getting the code from the URL and using it to try to query the Patron OAuth paths via: var promise = patreonOAuthClient .getTokens(oauthGrantCode, redirectURL) var result = await promise.then(function(tokensResponse) { } ...... catch(function(err) { console.error('error!', err) }) I would get the following error on the server (nodechef) but not on my localhost server: error! Body { url: 'https://www...
