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
Admin panel - settings controller - remove IgnoreAntiforgeryToken attribute
KrzysztofPajaka4972d8c3be7
diff --git a/src/Web/Grand.Web.Admin/Controllers/SettingController.cs b/src/Web/Grand.Web.Admin/Controllers/SettingController.csindex d414c625f..02dbfdced 100644--- a/src/Web/Grand.Web.Admin/Controllers/SettingController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/SettingController.cs@@ -829,7 +829,6 @@ namespace Grand.Web.Admin.Controllers}[HttpPost]- [IgnoreAntiforgeryToken]public async Task<IActionResult> PushNotifications(PushNotificationsSettingsModel model){var storeScope = await GetActiveStore();@@ -904,6 +903,7 @@ namespace Grand.Web.Admin.Controllersthrow new ArgumentNullException($"{oryginalFilePath} not exist");}+public IActionResult AdminSearch(){var settings = _settingService.LoadSetting<AdminSearchSettings>();@@ -912,7 +912,6 @@ namespace Grand.Web.Admin.Controllers}[HttpPost]- [IgnoreAntiforgeryToken]public async Task<IActionResult> AdminSearch(AdminSearchSettingsModel model){var settings = _settingService.LoadSetting<AdminSearchSettings>();@@ -961,7 +960,6 @@ namespace Grand.Web.Admin.Controllers}[HttpPost]- [IgnoreAntiforgeryToken]public async Task<IActionResult> SystemSetting(SystemSettingsModel model){//system