Skip to content

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.

Typo fix

KrzysztofPajak5d7fce4765fa
diff --git a/src/API/Grand.Api/Controllers/TokenWebController.cs b/src/API/Grand.Api/Controllers/TokenWebController.cs
index 88394c412..725e71cf2 100644
--- a/src/API/Grand.Api/Controllers/TokenWebController.cs
+++ b/src/API/Grand.Api/Controllers/TokenWebController.cs
@@ -140,7 +140,7 @@ namespace Grand.Api.Controllers
[AllowAnonymous]
public IActionResult Antiforgery()
{
- if (_apiConfig.Enabled)
+ if (!_apiConfig.Enabled)
return BadRequest("API is disabled");
var token = _antiforgery.GetAndStoreTokens(HttpContext).RequestToken;