Hi I’m getting a weird comma inserted automatically in the authorization header for bearer tokens. This causes the API to fail authorization and return an error. Its preventing it from using Postman at all.
I added the Bearer token in the UI. It also displays correctly in the temporary headers section when I click Send. However, I get back an error message from the API. When I check for the curl code I see this weird comma right before the word “Bearer.”
curl -X GET \
http://localhost:8080/api/invite-code/autocomplete \
-H 'Accept: */*' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Authorization: ,Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFjY2Y2YjVjLTY4YzUtNGU3Mi1hY2U3LTljMDc3MGEwYjI4MCIsIplhdCI6MTU2NTM5NzA4OX0.95K8oZUkPJQaTjjorGViE_-uAZyx1k5eNCsyXvQh5jI' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Host: localhost:8080' \
-H 'Postman-Token: ca420ed0-980c-4c7c-a9fa-eb17858a52b8,b555dbc4-8f6f-4a93-a4db-c0294769ca73' \
-H 'User-Agent: PostmanRuntime/7.15.2' \
-H 'cache-control: no-cache'
Forbidden
When I remove the comma it works fine:
curl -X GET \
http://localhost:8080/api/invite-code/autocomplete \
-H 'Accept: */*' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFjY2Y2YjVjLTY4YzUtNGU3Mi1hY2U3LTljMDc3MGEwYjI4MCIsIplhdCI6MTU2NTM5NzA4OX0.95K8oZUkPJQaTjjorGViE_-uAZyx1k5eNCsyXvQh5jI' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Host: localhost:8080' \
-H 'Postman-Token: ca420ed0-980c-4c7c-a9fa-eb17858a52b8,b555dbc4-8f6f-4a93-a4db-c0294769ca73' \
-H 'User-Agent: PostmanRuntime/7.15.2' \
-H 'cache-control: no-cache'
{"rows":[{"id":"bc74eb7f-b2d8-4ab7-b85f-8a87226502ee","....
Where does this comma come from and how can I remove it? I’m using Postman 64-bit v7.3.6 on Ubuntu 18.04.