2 years ago

#75592

test-img

Leonard RT

How can I solve 401 error on image render?

I'm getting a 401 error when I want to show an image. I'm using an API that returns data related to images (description, size, etc.). Previously I use an API that gives me a token which I use in the search API to get all the images data. Everything works ok, but when I want to show the img in my view, I get 401 error.

I understand that this happens because the URL of the image refers to another site (which has a login) What can I do? I'm working on asp.net core 5 with mvc pattern.

enter image description here enter image description here

c#

model-view-controller

http-status-code-401

0 Answers

Your Answer

Accepted video resources