From 2f39cab8cc2c5cac92202ebfe0470b2880cbfbfc Mon Sep 17 00:00:00 2001 From: rtrembecky Date: Tue, 17 Dec 2024 20:32:57 +0100 Subject: [PATCH] add headers to solve server-side issues --- src/api/apiAxios.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/apiAxios.ts b/src/api/apiAxios.ts index dd65d06a..b70982d0 100644 --- a/src/api/apiAxios.ts +++ b/src/api/apiAxios.ts @@ -24,6 +24,9 @@ export const newApiAxios = (base: 'server' | 'client') => { debugServer('[SERVER API]', method?.toUpperCase(), url && baseURL ? new URL(url, baseURL).href : url) + config.headers['X-Forwarded-Host'] = 'test.strom.sk' + config.headers['X-Forwarded-Proto'] = 'https' + return config }) }