Fix HTTP 500 login error: Configure anti-forgery and routing for proxy

- Re-enabled ValidateAntiForgeryToken attribute
- Configured anti-forgery for proxy environments with SameAsRequest
- Fixed area routing order and constraints
- Added proper forwarded headers middleware
This commit is contained in:
2025-09-24 22:06:15 +01:00
parent 2fb173696e
commit 96a4c178bb
2 changed files with 12 additions and 7 deletions

View File

@@ -28,7 +28,7 @@ public class AccountController : Controller
}
[HttpPost]
// [ValidateAntiForgeryToken] // Temporarily disabled for HTTPS proxy issue
[ValidateAntiForgeryToken]
public async Task<IActionResult> Login(string username, string password)
{
Console.WriteLine($"Received Username: '{username}', Password: '{password}'");