From 62e63e441a7da9b11218999e97ef3ad048381a48 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Thu, 25 Jun 2026 15:33:02 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20CORS=20layer=20=E2=80=94=20corrige=20'se?= =?UTF-8?q?rveur=20injoignable'=20dans=20le=20navigateur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ajout CorsLayer::permissive() au router axum - Répond aux requêtes OPTIONS (preflight CORS) - Le header X-API-Key rendait les requêtes non-simples → preflight obligatoire - Sans réponse OPTIONS, le navigateur bloquait → 'Failed to fetch' - Curl fonctionnait car pas de preflight --- src/frontend/changelog.html | 6 +++--- src/frontend/help.html | 6 +++--- src/frontend/index.html | 2 +- src/server/mod.rs | 6 ++++-- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/frontend/changelog.html b/src/frontend/changelog.html index b80a602..eb015f6 100644 --- a/src/frontend/changelog.html +++ b/src/frontend/changelog.html @@ -3,7 +3,7 @@ -Changelog — imagod-web v0.2.0+build.25-41fcb23-dirty +Changelog — imagod-web v0.2.0+build.26-4917dad-dirty