When we are hitting a button on our angualr app a specific http request should be canceled. We are trying to achive this be calling .unsubscribe()
in our app.
Inside the web dev tools we can see that the request is marked as canceled, but the CancellationToken on our ASP.Net backend won't be set to IsCancellationRequested = true
Tests with postman works as expected and also after refreshing our swagger page after calling the request will set IsCancellationRequested
to true
As i'm responsible only for the backend i don't know much about the frontend implementation. Please let me know if i should provide more information.
We are working with .net 6 and angular v13.
Does anyone have an idea, why the CancellationToken doesn't get canceled in this szenario. I already searched a lot, but no solution worked for us.