CSRF worked fine when the Rust backend is called from the browser, but needed this extra layer of forwarding when the Rust backend is called from the Svelte backend
HRAWXWFEN632GIC22J2D3WLN4ZTYOOOCHXTK4CGNAREZSIZQ4XJAC };export const handle = async ({ event, resolve }) => {const response = await resolve(event);const responses = event.locals.fetchResponses ?? [];for (const res of responses) {const setCookie = res.headers.get('set-cookie');if (setCookie) {response.headers.append('set-cookie', setCookie);}}return response;