Spring OAuth2 Client missing accept header

Hello guys, I’m following this article: https://developer.okta.com/blog/2021/05/05/client-credentials-spring-security which is really great. But I have one problem with this implementation, I’m receiving from authentication server an error due to Accept:application/json header is missing in http request. Does anybody know how to handle spring oauth2 client to add this header into request?