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.
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.