0

I'm trying the following:

I have a Spring Boot Application with spring security and jwt setup, on response from login I now want to set the Bearer jwt token directly into the clients headers, how can I do this?

  • in postman/curl: just by adding header with name `Authorization` and value `Bearer ` (where `Bearer` is literal, and `` refers to the token value like [here](https://stackoverflow.com/q/22229996/592355)); in browser: you can do it with a plugin like [mod header](https://chrome.google.com/webstore/detail/modheader-modify-http-hea/idgpnmonknjnojddfkpgkljpfnnfcklj?hl=de) – xerx593 Apr 20 '23 at 18:43
  • Thanks, I knew that already, but can I automate that, so that when I get the response and I'm logged in the header is set automatically? – Kreuterkeule Apr 20 '23 at 19:00

0 Answers0