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

How to include credentials when making CORS requests from Blazor?

$
0
0

On a blazor client application, what is the equivalent of jQuery ajax WithCredentials or JavaScript credentials: 'include'?

With Javascript I am able to say:

fetch('https://www.example.com/api/test', {   credentials: 'include'});

which includes auth cookie while making request and server responds with 200. I am trying to write same with Blazor using HttpClient.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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