I have a React application which make a call using axios. It does a GET and because of cors configuration, it calls OPTIONS too.
But I have a strange behavior that I didnt't understand at all how this happen. Sometimes, the OPTIONS call seems to return later from the GET response. Both return to me 200.
But how this can possibly happen? Because while OPTIONS does not return a response, how GET could be called? And it seems both are called together.
Im asking this question because I had a bug that only happened when the responses seems to come in this way and I couldn't figure it out what is happening.
Someone could please explain how this dynamic is actually supposed to work?