From 507f772ac91ab8f7674963f728602daaac78415c Mon Sep 17 00:00:00 2001 From: Colin Beeby Date: Tue, 2 Dec 2025 11:31:49 +0000 Subject: [PATCH] Moved UseCors after UseRouting --- LearningHub.Nhs.WebUI/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LearningHub.Nhs.WebUI/Program.cs b/LearningHub.Nhs.WebUI/Program.cs index 8f4852c2..7fd582d1 100644 --- a/LearningHub.Nhs.WebUI/Program.cs +++ b/LearningHub.Nhs.WebUI/Program.cs @@ -91,10 +91,10 @@ app.UseHttpsRedirection(); } - app.UseCors("MoodleCORS"); - app.UseRouting(); + app.UseCors("MoodleCORS"); + app.UseAuthentication(); app.UseAuthorization();