I am making AJAX request with javascript fetch, but it is only making OPTIONS call and not making further call. Weirdest thing is that the response header is just fine and $.ajax is working as expected.
Here is the response header on OPTIONS call.
HTTP/1.1 200 OK
Content-Length: 0
Server: Microsoft-IIS/8.0
Access-Control-Allow-Origin: http://localhost:5000
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: authorization
X-Powered-By: ASP.NET
Access-Control-Max-Age: 30000000
Set-Cookie: XXXXXXXXXXXX
Date: Wed, 16 Aug 2017 00:57:48 GMT
And here is fetch header set.
mode: 'cors',
credentials: 'include',
headers: {
Authorization: 'Bearer Token'
}