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 2870441 commit 10e3202Copy full SHA for 10e3202
client/src/lib/hooks/useConnection.ts
@@ -301,6 +301,7 @@ export function useConnection({
301
// Add custom header name as a special request header to let the server know which header to pass through
302
if (authHeaderName.toLowerCase() !== "authorization") {
303
headers[authHeaderName] = token;
304
+ headers["x-custom-auth-header"] = authHeaderName;
305
} else {
306
headers[authHeaderName] = `Bearer ${token}`;
307
}
0 commit comments