chore(cookies): debug (revert this)

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-12-19 21:38:57 +01:00
parent 1883ec2170
commit f28802b1c2
6 changed files with 113 additions and 16 deletions

View File

@@ -37,6 +37,13 @@ function AllProviders({ children }: { children: React.ReactNode }) {
links: [
httpLink({
url: `${process.env.NEXT_PUBLIC_API_URL}/trpc`,
fetch(url, options) {
return fetch(url, {
...options,
credentials: 'include',
mode: 'cors',
});
},
async headers() {
const token = await getToken();
if (token) {