From 80d446443cde5fd69c3282ef8a1985394a629d51 Mon Sep 17 00:00:00 2001 From: MpakobecEx Date: Wed, 27 May 2026 23:39:27 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_app.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web_app.html b/web_app.html index 17eec30..edaa75b 100644 --- a/web_app.html +++ b/web_app.html @@ -313,7 +313,11 @@ async function showQRModal(recordId) { try { - const response = await fetch(`/get_qr_code/${recordId}`); + const response = await fetch(`/get_qr_code/${recordId}`, { + headers: { + 'X-TG-Init-Data': tg.initData + } + }); const data = await response.json(); if (data.qr_code) { @@ -343,6 +347,7 @@ alert('QR-код отсутствует'); } } catch (e) { + console.error(e); alert('Ошибка загрузки QR'); } }