I have a specific requirement where I can NOT use Angular but only use usual Javascript. When user clicks a href link, javascript should capture the click and add JWT token in http header.
I followed suggestion in below link but it does not solve my issue:
Override default behaviour for link ('a') objects in Javascript
It is possible at all to capture the href clicks and add JWT token to the request.
Another additional questions - How the browser send the href clicks to the server? I know in case of form submission, I can use XHR post to do it. But what mechanism the browser usees to send href clicks to the server.