I am trying to call the api/portal/catalogue endpoint. The following command returns the API catalogue fine:
curl -X GET \
http://tyk-dashboard.local:3000/api/portal/catalogue \
-H 'authorization: SOME_KEY'
However, when I try from an Angular web front end in Chrome I get the following errors:
This is the request:
url: string = "http://tyk-dashboard.local:3000/api/portal/catalogue";
constructor(private http: HttpClient) {}
sendGetRequest() {
const httpOptions = {
headers: new HttpHeaders({
authorization: "SOME_KEY"
})
};
return this.http.get(this.url, httpOptions).subscribe(res => res);
}