From f9d54ae65c81d6548e83b3be26e59880b3b98b18 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 20 Aug 2026 21:45:55 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20session:=20Store.load()=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B5=20?= =?UTF-8?q?=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=D0=B0=20=E2=80=94=20refres?= =?UTF-8?q?h=20=D0=BD=D0=B5=20=D1=81=D0=B1=D1=80=D0=B0=D1=81=D1=8B=D0=B2?= =?UTF-8?q?=D0=B0=D0=B5=D1=82=20=D1=81=D0=B5=D1=81=D1=81=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - api.js в конце: Store.load() восстанавливает access/refresh/user из localStorage - ?v=11 cache bust - GET теперь через ?_t= (предыдущий коммит) — без CORS preflight --- public/index.html | 20 ++++++++++---------- public/js/api.js | 5 ++++- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/public/index.html b/public/index.html index 2cbb6c2..5beb367 100644 --- a/public/index.html +++ b/public/index.html @@ -34,15 +34,15 @@ - - - - - - - - - - + + + + + + + + + + diff --git a/public/js/api.js b/public/js/api.js index ab10d6e..dca2f0b 100644 --- a/public/js/api.js +++ b/public/js/api.js @@ -242,4 +242,7 @@ const PlacesApi = { }, }; -window.API = { api, Auth, ChatApi, ReviewApi, ConsentApi, PlacesApi, Store }; \ No newline at end of file +window.API = { api, Auth, ChatApi, ReviewApi, ConsentApi, PlacesApi, Store }; + +// сразу восстановим сессию из localStorage (для refresh страницы) +Store.load(); \ No newline at end of file