Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Add cookies to the API request in Blazor

$
0
0

I'm using the blazor web application with auto interaction and individual accounts, I'm trying to make a request to the API but the cookies aren't passed on in the request, how do I add them?

return await _httpClient.GetFromJsonAsync<List<UserDTO>>("api/users");

I need suggestions, I've been trying to solve this problem for some time, but without success.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>