I know that using button instead of anchor link in _LoginPartial.cshtml is to prevent cross domain GET requests, but I really need using anchor link to have a uniform nav-bar links. My question is: If I use anchor tag and use javascript code to call form submit method, will it be safe and prevent cross domain GET request? I mean replacing this code:
<button type="submit">Logout</button>
with this one:
<a href="javascript:document.getElementById('logoutForm').submit()"></a>