I have managed to move the calling of the fetch API to backend code and the “content-type” in the header was successfully changed to “application/json” and the call was successful with the response that I was expecting.
Thanks so much for the guidance especially from J.D.