From 26cc5f93e8befcde54578c3ef4b19958b16e2197 Mon Sep 17 00:00:00 2001 From: Daniil Chemerkin Date: Mon, 14 Jul 2025 14:28:12 +0000 Subject: [PATCH] Hotfix/change domain --- src/api/resources/Session.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/api/resources/Session.ts b/src/api/resources/Session.ts index 6ede85a..6b28607 100644 --- a/src/api/resources/Session.ts +++ b/src/api/resources/Session.ts @@ -226,10 +226,15 @@ export interface PayloadGetLocale { export const getLocaleRequest = (data: PayloadGetLocale) => { const url = new URL(routes.server.getLocaleCDN()); - const body = JSON.stringify(data); + + // Добавляем параметры запроса в URL + const params = new URLSearchParams(); + params.append('funnel', data.funnel); + params.append('locale', data.locale); + url.search = params.toString(); + return new Request(url, { - method: "POST", - body, + method: "GET", headers: getBaseHeaders() }); };