I'm new to Angular, I want to use Here Geocoding api in my angular service, I appended my apiKey to the httpParams but it didn't work. Here is my code in the service:
let params = new HttpParams();
params = params.append('at', `${coordinates.latitude},${coordinates.longitude}`);
params = params.append('q', query);
params = params.append('limit', limit);
params = params.append('apiKey', environment.apiMapRest);
return this.httpClient.get('https://discover.search.hereapi.com/v1/discover', {params});
Here is the error:
Access to XMLHttpRequest '
from origin 'http://localhost:4200' has been blocked by CORS policy:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
I can access it directly in my browser and postman btw.