Hi,
I'm a big fan of the OAuth 2.0 beta and it's working great for me! The only issue I have is that the server doesn't respond with a CORS (Cross-Origin Resource Sharing) header which makes cross-domain calls impossible.
Chrome and Firefox both throw a "No 'Access-Control-Allow-Origin' header is present on the requested resource" error. My current work-around is using a proxy, but the benefit of OAuth 2 should be that everything can be done through the browser directly.
Any plans on implementing the CORS header?
Thanks,
Dominikus
Answered! Go to the Best Answer.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
I have confirmed the issue and documented the bug. It will be fixed, but I don't have an ETA.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Hi @dominikus, CORS was enabled on api.fitbit.com. We're investigating why it's not responding properly.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Please PM to me your app id.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
try now.
Best AnswerStill nothing! Chrome 43 says:
XMLHttpRequest cannot load https://api.fitbit.com/1/user/-/activities/steps/date/today/1y.json? No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://local.interfacery.com:6001' is therefore not allowed access.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
I have confirmed the issue and documented the bug. It will be fixed, but I don't have an ETA.
Best Answer