CORS issue with angular https request

I’m trying to access the API from an angular application. When I access the API with http protocol it works fine. When using https the below error is thrown.

angular https error

 get(url, params) {
    // this.http: HttpClient
    return this.http.get(this.baseUrl + this.constructUrl(url), { params: params }).pipe(res => {
        return res;

When I debug, the URL passing to the httpClient is correct. Somewhere something goes wrong. Is there any setting required or Am I missing something?

Source: New feed
Source Url CORS issue with angular https request