fix: update authorization header handling to prevent empty values and show validation error
This commit is contained in:
parent
17ace55bbf
commit
30f9855fd5
1 changed files with 28 additions and 9 deletions
|
|
@ -162,14 +162,8 @@ const App = () => {
|
|||
return migrateFromLegacyAuth(legacyToken, legacyHeaderName);
|
||||
}
|
||||
|
||||
// Default to Authorization: Bearer as the most common case
|
||||
return [
|
||||
{
|
||||
name: "Authorization",
|
||||
value: "Bearer ",
|
||||
enabled: true,
|
||||
},
|
||||
];
|
||||
// Default to empty array
|
||||
return [];
|
||||
});
|
||||
|
||||
const [pendingSampleRequests, setPendingSampleRequests] = useState<
|
||||
|
|
|
|||
Loading…
Reference in a new issue