We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2af522 commit 353e012Copy full SHA for 353e012
api/src/unraid-api/auth/auth.guard.ts
@@ -87,7 +87,9 @@ export class GraphqlAuthGuard
87
// parse cookies from raw headers on initial web socket connection request
88
if (fullContext.connectionParams) {
89
const rawHeaders = fullContext.req.extra.request.rawHeaders;
90
- const headerIndex = rawHeaders.findIndex((headerOrValue) => headerOrValue === 'Cookie');
+ const headerIndex = rawHeaders.findIndex(
91
+ (headerOrValue) => headerOrValue.toLowerCase() === 'cookie'
92
+ );
93
const cookieString = rawHeaders[headerIndex + 1];
94
request.cookies = parseCookies(cookieString);
95
}
0 commit comments