From be2733cd83313695c77a1db272fa9e3107e2935f Mon Sep 17 00:00:00 2001 From: Elitsa Date: Thu, 12 Dec 2024 15:44:15 +0100 Subject: [PATCH] Enable anonymous calls to HandleLogout action --- src/Umbraco.Web.Website/Controllers/UmbLoginStatusController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Umbraco.Web.Website/Controllers/UmbLoginStatusController.cs b/src/Umbraco.Web.Website/Controllers/UmbLoginStatusController.cs index d4fd13489b61..50b975516221 100644 --- a/src/Umbraco.Web.Website/Controllers/UmbLoginStatusController.cs +++ b/src/Umbraco.Web.Website/Controllers/UmbLoginStatusController.cs @@ -1,3 +1,4 @@ +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Umbraco.Cms.Core.Cache; using Umbraco.Cms.Core.Logging; @@ -29,6 +30,7 @@ public UmbLoginStatusController( => _signInManager = signInManager; [HttpPost] + [AllowAnonymous] [ValidateAntiForgeryToken] [ValidateUmbracoFormRouteString] public async Task HandleLogout([Bind(Prefix = "logoutModel")] PostRedirectModel model)