diff --git a/Directory.Build.props b/Directory.Build.props index 2874cdf7..fb93ffb2 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -7,7 +7,7 @@ VirtoCommerce - 6.19.0 + 6.20.0 $(VersionSuffix)-$(BuildNumber) diff --git a/VirtoCommerce.Storefront/Controllers/ErrorController.cs b/VirtoCommerce.Storefront/Controllers/ErrorController.cs index 1f192b07..01c6c939 100644 --- a/VirtoCommerce.Storefront/Controllers/ErrorController.cs +++ b/VirtoCommerce.Storefront/Controllers/ErrorController.cs @@ -40,6 +40,7 @@ public IActionResult Error(int? errCode) [Route("AccessDenied")] public IActionResult AccessDenied() { + Response.StatusCode = StatusCodes.Status403Forbidden; return View("AccessDenied"); } } diff --git a/VirtoCommerce.Storefront/Domain/Security/CustomCookieAuthenticationEvents.cs b/VirtoCommerce.Storefront/Domain/Security/CustomCookieAuthenticationEvents.cs index 826e65cf..91abadef 100644 --- a/VirtoCommerce.Storefront/Domain/Security/CustomCookieAuthenticationEvents.cs +++ b/VirtoCommerce.Storefront/Domain/Security/CustomCookieAuthenticationEvents.cs @@ -38,7 +38,8 @@ public override Task RedirectToAccessDenied(RedirectContext