Getting status of 401 ()when trying to display an Image in Angular App from from webAPI Backend

I am getting a StatusCode of 401() in the console when trying to fetch and display an Image from my .NetCore 8.0 webAPI in my Angular19 application. Please read the case-scenario below, very closely and minutely.

I am uploading image from my nG19 application and it gets copied to a folder called RecipeImages under Resources under my webAPI project structure, ie. the path is

webAPI project–> Resources–> RecipeImages(here images are copied)

Simultaneously I am saving the path also in the database. The images are being copied to the desired path absolutely fine. Also the respective paths are also being saved in the database just fine.

Example of a saved path in database is: ResourcesRecipeImagesNigella_GarlicButterMushroom_638706726811613226.jpg

** Note that above path is with backslashes. I basically followed the approach used in this tutorial to do the task:
https://code-maze.com/upload-files-dot-net-core-angular/

Now I am trying to display this image in a component. Upon ngOnInt, I have written code to make call to backend service and get all the data from that database table. Fetching them and preparing the path to bind to src attribute of the image control;

component.html:

<img [src]="createImagePath(selectedRecipeDetails.imagePath)" alt="" class="circular_recipe" style="height:410px; width: 410px;" />

component.ts:

createImagePath(path:any)
  {
    return `https://localhost:7164/${path}`;
  }

When I am inspecting the blank/vacant image element on my page, the complete path that I am getting on the src attribute is as:

src="https://localhost:7164/ResourcesRecipeImagesNigella_GarlicButterMushroom_638706726811613226.jpg"

7164 being the port number on which my webAPI backend is running of course. As you can see there is a whole lot of mess with front and backslashes.
I also made code changes in Program.cs so that my webAPI backend can serve static files. Like so,

Program.cs

app.UseStaticFiles(new StaticFileOptions()
{
    FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), @"Resources")),
    RequestPath = new PathString("/Resources")
});

Basically I did everything in toe-toe, with the tutorial. Still I am unable to understand why I am unable to render the image in my component. I downloaded and ran the finished project from that tutorial to make sure that it is a working, functional and correct. It is! But why the anomaly in my application? Goes without saying if I manually change all the backslashes in the saved path in the database to frontslashes, it still doesn’t serve anything! My image control remains blank.

Can you folks spot anything? Any small detail that I may be overlooking? Or is there more code to be added/edited in frontend and backend?

Please help sort this!

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật