title: Spring boot security oauth2 get access_token from cookie
body: <p>I'm currently implementing the authentication between several Spring Boot applications. At the moment, the jwt access token is sent in the authorization header and it is picked up by the resource server. However I would like to use HttpOnly cookies to send the tokens and was wondering how do you configure Spring Boot to get the token from cookies instead of the headers.</p>
  
  <p>I should mention that I'm using the spring-security-oauth2 and spring-security-jwt libraries. </p>
  
  <p>Thank you!</p>