Google API http request unknow error

Hi !

Since yesterday i deal with an error that i can’t fix, so now i’m asking for your help.
I’m trying to call a request to the Google Api to get Json data but i get this error:

ERROR HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: "Unknown Error", url: "https://maps.googleapis.com/maps/api/place/nearbys…ruise&key=My-Key", ok: false, …}

But actually the google api url is working in my browser, and i tried the same code with an other Json url which is not from google and it worked.

So I don’t have any idea of where is the error.

Here is the concerned part of the code:

import { HttpClient } from  '@angular/common/http'; 

constructor(private http: HttpClient){}

getPlaceInfo(placeId: string){
      return this.http.get("https://maps.googleapis.com/maps/api/place/details/json?place_id='+placeId+'&fields=name,rating,formatted_phone_number&key=My_Key")
  }

this.getPlaceInfo(this.placeId).subscribe(data => {
      console.log(data);
    })

Do someone know how to fix this issue ?
Thank’s in advance

I founded out that it’s a CORS error, now I have to figure out how to fix it.