Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
API - Add missing attribute AllowAnonymous for Antiforgery
KrzysztofPajak40f0ea68a7e3
diff --git a/src/API/Grand.Api/Controllers/TokenWebController.cs b/src/API/Grand.Api/Controllers/TokenWebController.csindex 8cc40a190..9356aae79 100644--- a/src/API/Grand.Api/Controllers/TokenWebController.cs+++ b/src/API/Grand.Api/Controllers/TokenWebController.cs@@ -117,6 +117,7 @@ namespace Grand.Api.Controllers}[HttpGet]+ [AllowAnonymous]public IActionResult Antiforgery(){var token = _antiforgery.GetAndStoreTokens(this.HttpContext).RequestToken;