Skip to content
Snippets Groups Projects
Commit 50597ac1 authored by Leonardo Christino's avatar Leonardo Christino
Browse files

chore: allow fetch redirect

parent 8dbb0564
No related branches found
No related tags found
No related merge requests found
Pipeline #127423 passed
...@@ -72,9 +72,14 @@ export function App(props: App) { ...@@ -72,9 +72,14 @@ export function App(props: App) {
const domain = import.meta.env.BACKEND_URL; const domain = import.meta.env.BACKEND_URL;
const useruri = import.meta.env.BACKEND_USER; const useruri = import.meta.env.BACKEND_USER;
fetch(`${domain}${useruri}/headers`);
fetch(`${domain}${useruri}/headers`, { fetch(`${domain}${useruri}/headers`, {
method: 'GET',
redirect: 'follow',
});
fetch(`${domain}${useruri}/headers`, {
method: 'GET',
credentials: 'include', credentials: 'include',
redirect: 'follow',
headers: { headers: {
Authorization: `Bearer ${auth.accessToken}`, Authorization: `Bearer ${auth.accessToken}`,
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment