Skip to content

Commit f28f955

Browse files
committed
chore: always attach local dev origin when proxy
1 parent 1392569 commit f28f955

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

apps/frontend/server/api/[...].ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ function createHandler() {
2323
target: currentBackendUrl,
2424
enableLogger: false,
2525
changeOrigin: true,
26-
configureProxyRequest: () => ({ streamRequest: true, sendStream: true, fetchOptions: { redirect: 'manual' } }),
26+
configureProxyRequest: () => ({
27+
streamRequest: true,
28+
sendStream: true,
29+
fetchOptions: { redirect: 'manual' },
30+
headers: {
31+
Origin: useRuntimeConfig().public.frontendUrl,
32+
},
33+
}),
2734
})
2835
}

0 commit comments

Comments
 (0)