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();