Skip to content

Commit

Permalink
add headers to solve server-side issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrembecky committed Dec 17, 2024
1 parent 84231e9 commit 2f39cab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/apiAxios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}
Expand Down

0 comments on commit 2f39cab

Please sign in to comment.