I'm creating a website that allows internal users to visit the "Admin" page(s) and authenticate via Windows Authentication. The rest of the site is set-up with jQuery Mobile and allows anonymous access. This appears to work fine except when I access the "Admin" area first and then attempt to visit the main part of the site and submit preform a POST. It appears the CSRF protection (Anti-Forgery token) isn't liking this as I receive the following error message.
The provided anti-forgery token was meant for user "Domain\UserName", but the current user is "".
Would moving the "Admin" portion of the site to it's own virtual directory with Windows Authentication resolve this particular issue or is there a better solution?
Note: I've read a couple posts that have said to set the following property to circumvent this issue, but I'm not sure what other security vulnerabilities (if any) I may be opening up by doing so.
AntiForgeryConfig.SuppressIdentityHeuristicChecks = true;