mirror of
https://github.com/nikdoof/pocket-id.git
synced 2025-12-14 15:22:18 +00:00
fix: bad gateway error if nginx reverse proxy is in front
This commit is contained in:
@@ -46,6 +46,11 @@ export const handle: Handle = async ({ event, resolve }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const response = await resolve(event);
|
const response = await resolve(event);
|
||||||
|
|
||||||
|
// The link header causes nginx reverse proxies to fail because it exceeds the maximum size limits
|
||||||
|
// https://github.com/sveltejs/kit/issues/11084
|
||||||
|
response.headers.delete('link');
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user