Skip to content
Snippets Groups Projects
Commit 8b91ac3b authored by Leonardo Christino's avatar Leonardo Christino Committed by Scott
Browse files

chore: allow fetch redirect

parent 70bb2ede
No related branches found
No related tags found
No related merge requests found
......@@ -72,9 +72,14 @@ export function App(props: App) {
const domain = import.meta.env.BACKEND_URL;
const useruri = import.meta.env.BACKEND_USER;
fetch(`${domain}${useruri}/headers`);
fetch(`${domain}${useruri}/headers`, {
method: 'GET',
redirect: 'follow',
});
fetch(`${domain}${useruri}/headers`, {
method: 'GET',
credentials: 'include',
redirect: 'follow',
headers: {
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