Call Protected APIs from a Blazor Web App

OMG, which is what I yelled when I found it. I used Copilot, I tried all over the place to find the answer, and the two above posts. Finally got just the right question I think in Copilot, I.E. Assistant from Resharper, I kept at it saying this code returns a 500 error, and that Postman worked, it said, “Bearer” not “bearer”, oy vey, case messes with me again. I am posting this in case someone else runs into it.

1 Like