Access denied, while trying to get a access token using client credentials

I’ve two applications and one API
App A which is a Machine to Machine
App B which is a Regula Web Application

API C which provided permission for both App A and App B

I’ve granted Client Credentials permission to both App A and App B

I’m able to
get access token using App A client credentials and call API C
but not able to
get access token using App B client credentials.

I’m suspecting, does Regular Web Application can able to use client credentials?

Any insights on this are really helpful.