Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

angular / ionic problem with CORS

Hi there,

 

I asked this question in the ionic2 forum, so I hope it's ok to ask here...

 

I'm learning Oauth02 together with ionic/angular2. I'm trying to get fitbit data from my account. Since fitbit needs a fixed callback url I setup a simple node.js server, added CORS support to it, so that my ionic app talks to him and he talks to fitbit. Accessing my server from a browser to authorize me in fitbit works ok: http://<myserver>/approve --> Fitbit --> back to my  server/callback --> all OK.

 

When I try to trigger all via an http.get from ionic, my server goes to fitbit, but when fitbit responds with the redirection, my server says it's not CORS authorized. 

 

Any idea why / how to solve this?

Best Answer
0 Votes
0 REPLIES 0