-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fitbit.authorizeURL() not working while using res.redirect #3
Comments
Are you trying to use this library in the browser? This library is designed to be used in your webserver backend to make calls to the fitbit api, not in your webclient. Send me the code where you are actually using and calling this library and perhaps I can assist you better. |
I am using the code snippet running in Node.js with express. Here is my code |
@peebles When i called my webserver API through REST console, Its working fine. But when i called through azax call using AngularJs. it gives CORS error. Any suggestions? |
Add the following to your webserver (assuming its written in node/express):
'GET,PUT,POST,DELETE'); On 2/9/16 7:10 AM, gurpreets89 wrote:
|
Hi Team,
Greetings
We have facing an issue while using res.redirect(fitbit.authorizeURL()). But if i call the URL through web browser it gets invoked and called the redirect URL which has been set in fitbit application
settings. Please troubleshoot our problem.
Thanks for your co-operation.
The text was updated successfully, but these errors were encountered: