[bug]: Cannot specify both `apiKey` on `Authorization` tab and jwt bearer token on the header.
naolaregaqena opened this issue · comments
Naol Arega commented
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
When i specify an apiKey
in Authorization
section of a collection, folder or request and also specify JWT token on the header as Authorization: Bearer ...
as so. the api key is removed in the request header. i expect for both of them to be passed on the header. both have different keys header to not assume they getting overridden. this is occurring on hoppscotch aio version 2024.3.0
.
Steps to reproduce
- Go to the either self hosted or cloud version of hoppscotch.
- Create a collection. can be either personal workspace or team workspace.
- Add an api key on Authorization section of the collection properties.
- Optionally create a folder and set the authorization property to
inherit
. - Create a request and similarly set its authorization property to
inherit
. - Navigate to header section of the request, the api key should be visible. as soon as an
Authorization
header is set the api key header disappears, and it is not passed on the header of the request.
Environment
Production
Version
Self-hosted
Liyas Thomas commented
Liyas Thomas commented
@JunaidOfficialNow — Sure.