···11+import type { Handle } from '@sveltejs/kit';
22+33+export const handle: Handle = async ({ event, resolve }) => {
44+ return resolve(event, {
55+ // sveltekit blocks atcute fetch handler from reading headers
66+ // because it assumes backend APIs might return sensitive headers.
77+ // this happens when during CSR we run a fetch that was the same
88+ // as one ran during SSR, so sveltekit tries to give that fetch
99+ // the data we already had.
1010+ // so we allow these headers to have atcute function properly.
1111+ filterSerializedResponseHeaders(name) {
1212+ return name === 'content-type' || name === 'content-length';
1313+ }
1414+ });
1515+};