I want to use JWT authorization for .net core MVC project. I've found a number of examples of how to return a JWT token when a user logs in. However, there are only a few examples of how to transmit a token at each request from the header.
I found example with AJAX:
$.ajaxSetup({ headers: { "Authorization": "Bearer " + accessToken } });
Simple Authentication using Jwt in dot net core MVC
How to use JWT in MVC application for authentication and authorization?
Is this the right way to transfer a JWT token? Do I always have to use AJAX?