From fa89f4312d27b8e173958149c062bf73c2a8bad4 Mon Sep 17 00:00:00 2001 From: Dillard Blom Date: Mon, 6 Jul 2026 16:34:09 +0200 Subject: [PATCH] fix: remove API_SECRET from .env template to restore web UI login When API_SECRET is set, Invoice Ninja requires the X-API-SECRET header on ALL API calls including /api/v1/login. The web UI (React SPA) never sends this header, so browser login silently fails with "Invalid secret" while the mobile app (which can be configured with the secret) continues to work. UPDATE_SECRET serves a different purpose (protecting the /update endpoint) and is kept. API_SECRET should remain unset for self-hosted YunoHost installs. Co-Authored-By: Claude Sonnet 4.6 --- conf/default.env | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/default.env b/conf/default.env index 825ca6d..54f36d3 100644 --- a/conf/default.env +++ b/conf/default.env @@ -57,7 +57,8 @@ PHANTOMJS_KEY='__PHANTOMJS_KEY__' PHANTOMJS_SECRET=__APP_KEY__ UPDATE_SECRET=__API_SECRET__ -API_SECRET=__API_SECRET__ +# API_SECRET is intentionally not set: when set, it requires the X-API-SECRET header +# on ALL API calls including the web UI login (React SPA), which breaks browser login. PRECONFIGURED_INSTALL=true