Skip to content

Commit

Permalink
fix: bad gateway error if nginx reverse proxy is in front
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith404 committed Oct 31, 2024
1 parent 8c96ab9 commit 590cb02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ export const handle: Handle = async ({ event, resolve }) => {
}

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;
};

Expand Down

0 comments on commit 590cb02

Please sign in to comment.