I'm using the following Typescript function to get access to API data:
export class BomService {
constructor(private http: HttpClient) { }
GetAllBomList(): Observable<IBom[]> {
return this.http.get<IBom[]>('http:192.168.10.1:5000/api/bom/getallboms');
}
}
When I use my own computer I can load data completely but when I'm trying to get access through Internet, the UI is loaded but the data cannot be fetched. The reason is Http address. Both the API and the UI are hosted in the same server using IIS. How can I solve this problem?
