Got 400 error for pre-flight options CORS token request from OWIN-based WebAPI
It is really strange. I tried to make a CORS request to WebAPI2 (OWIN-based) to gain authentication token. It always fails every other times. like 1st request fails, but 2nd request will go through. And the 3rd fails, but the 4th will go through. I don't understand why it was working half of the times. I check the browser request (chrome). The one got failed always goes by OPTIONS method. The one went through always goes by POST. But I always use post method with headers 'Content-Type': 'application/x-www-form-urlencoded' So I guess the question is why sometime Chrome/fire fox send preflight