How to cancel an .NET Web API request from Angular 16?

In Angular, I make API calls by subscribing to observables. When a user cancels a request, the application unsubscribes to the subscription which cancels the request. However, it does not trigger the endpoint and so the cancellation token param in our endpoint is of no use.