I am attempting to retrieve data from a JSON file stored in an S3 bucket with public access. My goal is to parse this data and display it in an HTML table.
http.get<Post>('https://jsonfile/file.json').subscribe (res => {
console.log(res);
});
Unfortunately, I encountered the following error:
ERROR
HttpErrorResponse {headers: {…}, status: 0, statusText: "Unknown Error", url: null…}
You can view my StackBlitz example here: https://stackblitz.com/edit/angular-kwn1zg