letakeane / emotican-app

1 stars 4 forks source link

Iron out fetch issues; style emotion analysis results #13

Closed letakeane closed 7 years ago

letakeane commented 7 years ago

I'm now getting the correct data back from the API; however my code is using the preflight CORS response (it's still a 200) instead of waiting for the main response (emotion analysis data).

Below is a screenshot of the responses I'm getting from the API. This is the second response, which contains the data I need. You can see on the left-hand side that there is another "recognize" response above the relevant data; that's the preflight CORS response. screenshot of API response