From c0cbb0ddb241fbab80f1b04fd0d6c395c38b04ff Mon Sep 17 00:00:00 2001 From: Whykioh Date: Mon, 13 Apr 2026 02:20:29 +0200 Subject: [PATCH] fix search method --- watchgether/js/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/watchgether/js/index.js b/watchgether/js/index.js index 8018924..c19b1e7 100644 --- a/watchgether/js/index.js +++ b/watchgether/js/index.js @@ -2,7 +2,9 @@ async function apiRequest(action, params = {}) { const response = await fetch('RequestHandler.php', { method: 'POST', - headers: { 'Content-Type:': 'application/json' }, + headers: { + 'Content-Type': 'application/json' // J'ai enlevé le ":" après Type + }, body: JSON.stringify({ action, params }) }); return await response.json();