I am attempting to send an HTTP GET request using the specified URL:
private materialsAPI='https://localhost:5001/api/material';
setPrice(id: any, price: any): Observable<any> {
const url = `${this.materialsURL}/${id}/price/${price}`;
return this.http.get<any>(url, httpOptions).pipe(
tap(_ => this.log(`Updated material price with id=${id}`)),
catchError(this.handleError<any>('updateMaterialPrice'))
);
}
However, nothing seems to be happening. When I check the network section in the browser, there is no record of the request being made. Strangely, when I try the same URL in Postman, the request goes through successfully.