hoppscotch / hoppscotch

Open source API development ecosystem - https://hoppscotch.io (open-source alternative to Postman, Insomnia)

Home Page:https://hoppscotch.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug]: Cannot specify both `apiKey` on `Authorization` tab and jwt bearer token on the header.

naolaregaqena opened this issue · comments

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

  1. Go to the either self hosted or cloud version of hoppscotch.
  2. Create a collection. can be either personal workspace or team workspace.
  3. Add an api key on Authorization section of the collection properties.
  4. Optionally create a folder and set the authorization property to inherit.
  5. Create a request and similarly set its authorization property to inherit.
  6. 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

cc: @nivedin @amk-dev

may i take look into this.. and solve this?