I am trying to download an Excel file returned by the Web API using an Ajax client. When I try to hit the end point using Swagger, it returns the file and I can download it, but when I am trying through Ajax client, I am still able to download the file, but the file contents is corrupted and I cannot open it.