From 351368e7b573df1ea77a5d39f1809e735f3caebd Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Fri, 21 Aug 2026 00:41:14 -0700 Subject: [PATCH] Sends a JSON body with delete requests to the FastEndpoints endpoints --- src/Lumina.Presentation.Web/wwwroot/js/site.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Lumina.Presentation.Web/wwwroot/js/site.js b/src/Lumina.Presentation.Web/wwwroot/js/site.js index ae4d902a..ddd86761 100644 --- a/src/Lumina.Presentation.Web/wwwroot/js/site.js +++ b/src/Lumina.Presentation.Web/wwwroot/js/site.js @@ -189,7 +189,8 @@ async function callApiDeleteAsync(url, options = {}) { // make the request const response = await fetch(url, { method: 'DELETE', - headers: headers + headers: headers, + body: '{}' // FastEndpoints parses the JSON body when the content type is application/json, so an empty body would fail to deserialize }); if (response.redirected) // if a redirect is requested, perform it window.location.href = response.url;