How to add Authorization Header to Angular http request?
This is my first post. I've just started learning Go and Angular and I'm attempting to connect the angular app to a go api. I've written both and am stuck identifying the root of the problem. I thought it was a CORS problem, but it works fine if I don't include the headers line of code in my Angular http request. At this point I'm just trying to add the header. The authorization code isn't implemented yet. Both apps are running locally with the Go app on port 5000 and Angular on 4200 Angular http request that doesn't work: this.http.get<ProjectedBalance>(requestUrl, {headers: new HttpHeaders()