0👍
✅
Just to answer my own question in case anyone else hits a similar problem. Firstly the code in the question above works fine. My problem was that CORS was not enabled on the server side for the http://localhost/api/second API and it needed to be. Fiddler was not effected by the CORS restriction and hence fetched the API results just fine.
Source:stackexchange.com