diff --git a/BTCPayServer/Controllers/StoresController.cs b/BTCPayServer/Controllers/StoresController.cs index 718da19e5..889c9e785 100644 --- a/BTCPayServer/Controllers/StoresController.cs +++ b/BTCPayServer/Controllers/StoresController.cs @@ -981,8 +981,9 @@ namespace BTCPayServer.Controllers }); } - [HttpGet] - [Route("{storeId}/dismissHint/{id}")] + [HttpPost] + [Route("{storeId}/dismissHint")] + [IgnoreAntiforgeryToken] public async Task DismissHint(string id) { var blob = CurrentStore.GetStoreBlob(); diff --git a/BTCPayServer/Views/Stores/_Nav.cshtml b/BTCPayServer/Views/Stores/_Nav.cshtml index d99241fe5..1ceb65553 100644 --- a/BTCPayServer/Views/Stores/_Nav.cshtml +++ b/BTCPayServer/Views/Stores/_Nav.cshtml @@ -18,9 +18,7 @@ var url = "@Url.Action("DismissHint", "Stores", new { storeId = "store_Id", id="hint_Id" })" .replace("hint_Id", hintId) .replace("store_Id", storeId); - $.get(url, function (data) { - //row.toggleClass("seen loading"); - }); + $.post(url); return true; }