Get request header issue

You don’t send a header to the OAuth client credentials flow endpoint

It’s sent as query string or POST body data

Node JS Example: