Hi,
I have an API hosted on heroku.com and I have an error message when I do my http get call. It seems waiting an header. I saw a few information about that but I still not well understand how I have to manage header.
Could you please give me an example ?
Here my code
let headers = {
‘Content-Type’: “application/json”
};
this.http.get(‘https://myAppLink.com/api/alerts’,headers).subscribe((data) => {
console.log("----Connection done")
console.log(data)
})
Many thanks in advance for your help